I have the following example:
Is there a way to check if this element exists and ha
You can do something like this:
jQuery.fn.existsWithValue = function() { return this.length && this.val().length; } if ($(selector).existsWithValue()) { // Do something }