4845 explained code solutions for 96 technologies


jqueryIterate through elements with the same class


$('.class').each(function() { console.log( $(this) ); });ctrl + c
'.class'

selector for all elements with class class

each(

will call specified function for each found element

$(this)

referring to current element in the loop