Created
May 22, 2013 08:41
-
-
Save JohnArcher/5626141 to your computer and use it in GitHub Desktop.
Checks existance of DOM element. - Alternativly you can use http://evilwebdesign.bplaced.net/doesExist/
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
| if ($('#entitytable').length === 0) { | |
| alert("not there"); | |
| } else { | |
| alert("there"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment