Skip to content

Instantly share code, notes, and snippets.

@JohnArcher
Created May 22, 2013 08:41
Show Gist options
  • Select an option

  • Save JohnArcher/5626141 to your computer and use it in GitHub Desktop.

Select an option

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/
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