How to loop through all elements in the jQuery selector.


$('yourselector').each(function(){
    var $elem = $(this);
});

Keyword Reference