jquery do it for each div with the same class 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));
}