lexs
10/27/2017 - 2:23 PM

.each()

Iterate over a jQuery object, executing a function for each matched element.

Type: Function( Integer index, Element element )

"this" refers to the current element, the current element is aslo a second parameter.

$('.elem').each(function(index, el){
  // this and el seems like are the same
  var this = $(this);
  var el = $(el);
});