Check if textbox has empty value
<p>I have the following code:</p>

<pre><code>var inp = $("#txt");

if(inp.val() != "")
// do something
</code></pre>

<p>Is there any other way to check for empty textbox using the variable 'inp'</p>
