1$( "li" ).each(function( index ) {
2 console.log( index + ": " + $( this ).text() );
3});
4
1var slides = document.getElementsByClassName("slide");
2for (var i = 0; i < slides.length; i++) {
3 Distribute(slides.item(i));
4}
1$('.testimonial').each(function(){
2 //if statement here
3 // use $(this) to reference the current div in the loop
4 //you can try something like...
5 if(condition){
6 }
7 });