Skip to content

Instantly share code, notes, and snippets.

@andidev
Created September 23, 2011 14:30
Show Gist options
  • Save andidev/1237487 to your computer and use it in GitHub Desktop.
Save andidev/1237487 to your computer and use it in GitHub Desktop.
jquery plugin to check if jquery selection is empty
jQuery.fn.extend({
/* jquery object to html-string */
isEmpty: function() {
// Return true if jquery object is empty
return (object.length > 0 ? true : false);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment