Skip to content

Instantly share code, notes, and snippets.

@mojaray2k
Created September 9, 2013 01:27
Show Gist options
  • Save mojaray2k/6490315 to your computer and use it in GitHub Desktop.
Save mojaray2k/6490315 to your computer and use it in GitHub Desktop.
This simply passes the universal selector (which matches everything) to jQuery, and logs the number of elements found.
// How many elements does your page have? console.log('This page has ' + $('*').length + ' elements!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment