title: Check if textbox has empty value
body: <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>