Created
September 23, 2011 14:30
-
-
Save andidev/1237487 to your computer and use it in GitHub Desktop.
jquery plugin to check if jquery selection is empty
This file contains 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
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