Skip to content

Instantly share code, notes, and snippets.

@kasperhartwich
Created September 13, 2012 07:25
Show Gist options
  • Select an option

  • Save kasperhartwich/3712569 to your computer and use it in GitHub Desktop.

Select an option

Save kasperhartwich/3712569 to your computer and use it in GitHub Desktop.
jQuery exists function
//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