How to check if the any of my textbox is empty or not in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1854556/check-if-inputs-are-empty-using-jquery">Check if inputs are empty using jQuery</a>  </p>
</blockquote>



<p>I have form and textboxes, how will I determine if any of these textboxes is empty using javascript if else statement once a form button is clicked.</p>

<pre><code>function checking() {
    var textBox = $('input:text').value;
    if (textBox == "") {
        $("#error").show('slow');
    }
}
</code></pre>

<p>Thanks in advance!</p>
