Created
September 9, 2013 01:27
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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