Skip to content

Instantly share code, notes, and snippets.

@robbestad
Last active December 19, 2015 04:19
Show Gist options
  • Save robbestad/5896668 to your computer and use it in GitHub Desktop.
Save robbestad/5896668 to your computer and use it in GitHub Desktop.
jQuery tricks
//jquery if exists DOM element
if ( $('#myDiv').length ) {
//exists
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment