for each in jquery the class elements code example Example: for each loop class jquery $('.testimonial').each(function(i, obj) { //test });