Skip to content

Instantly share code, notes, and snippets.

@0xnbk
Created September 13, 2010 04:14
Show Gist options
  • Save 0xnbk/576793 to your computer and use it in GitHub Desktop.
Save 0xnbk/576793 to your computer and use it in GitHub Desktop.
Get the total number of matched elements
$('element').size();
@0xnbk
Copy link
Author

0xnbk commented Sep 13, 2010

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment