Answers for "do a function for all element with same class in a page"

0

javascrip for each element of class

var slides = document.getElementsByClassName("slide");
for (var i = 0; i < slides.length; i++) {
   Distribute(slides.item(i));
}
Posted by: Guest on September-21-2020

Code answers related to "do a function for all element with same class in a page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language