loop on each jquery element with class name code example Example: for each loop class jquery $('.testimonial').each(function(i, obj) { //test });