title: Checking if textbox has value
body: <p>How can I make syntax of checking if a textbox has a value using if else statement.
  Something like this:</p>
  
  <pre><code>if ( //textbox has value ) {
    //perform this task
  }
  </code></pre>
  
  <p>Can anyone help please? Any help would be appreciated.
  Thanks in advance.</p>