Jquery – Get the total number of matched elements

That what I call a very simple, but very useful tip: This will return the number of matched elements:

$('element').size();

Leave a Reply

Your email address will not be published. Required fields are marked *

*