Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js for each element class

var elements = document.getElementsByClassName("element");
for (var i = 0; i < elements.length; i++) {
   // do what you want with elements[i]
}
 
PREVIOUS NEXT
Tagged: #js #element #class
ADD COMMENT
Topic
Name
5+1 =