Published
- 1 min read
javascrip for each element of class
The solution for this is noted below
javascrip for each element of class
Solution
var slides = document.getElementsByClassName('slide')
for (var i = 0; i < slides.length; i++) {
Distribute(slides.item(i))
}
Try other methods by searching on the site. That is if this doesn’t work