SyntaxFix
Write A Post
Hire A Developer
Questions
You can do something like this:
jQuery.fn.existsWithValue = function() { return this.length && this.val().length; } if ($(selector).existsWithValue()) { // Do something }