for each element of class html code example
Example 1: for each loop class jquery
$('.testimonial').each(function(i, obj) {
//test
});
Example 2: javascrip for each element of class
var slides = document.getElementsByClassName("slide");
for (var i = 0; i < slides.length; i++) {
Distribute(slides.item(i));
}