JQuery - Get the total number of matched elements


/ Published in: JavaScript
Save to your folder(s)

Just testing snipplr w/ this snippet.


Copy this code and paste it in your HTML
  1. /*
  2.  * Jquery (http://www.jquery.com)
  3.  * size()
  4.  *
  5.  * Returns the number of matched elements.
  6.  */
  7.  
  8. $('element').size();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.