Created
September 13, 2012 07:25
-
-
Save kasperhartwich/3712569 to your computer and use it in GitHub Desktop.
jQuery exists function
This file contains hidden or 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
| //jQuery function to check if element exists. | |
| jQuery.fn.exists = function(){return this.length>0;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment