Check if textbox has empty value

Viewed 271236

I have the following code:

var inp = $("#txt");

if(inp.val() != "")
// do something

Is there any other way to check for empty textbox using the variable 'inp'

8 Answers
Related