I have the following code:
var inp = $(\"#txt\"); if(inp.val() != \"\") // do something
Is there any other way to check for empty textbox
$('input:text').filter(function() { return this.value.length > 0; });