title: jQuery check if input empty (0) on Submit
body: <pre><code>&lt;input type="text" readonly="" value="0" class="input-mini1 sum1"&gt; 
  &lt;input type="text" readonly="" value="0" class="input-mini1 sum2"&gt;
  &lt;input type="text" readonly="" value="0" class="input-mini1 sum3"&gt;
  &lt;button type="button" id="btn_submit" class="btn"&gt;Submit&lt;/button&gt;
  </code></pre>
  
  <p>Solution Tried:</p>
  
  <pre><code>$("#btn_submit").click(function(){
      var isFormValid = true;
  
      $(".input-mini1 input").each(function(){
        if ($.trim($(this).val()).length == 0){
           alertify.error("Please check hours");
           isFormValid = false;
        }else{
        alertify.error("Valid hours");
        }
       });
  
       if (!isFormValid) alert("Please fill in all the required fields (indicated by *)");
      return isFormValid;
  });
  </code></pre>
  
  <p>For some reason, when I submit the form with empty/zero filled in, it does not validate. User must not submit the form if input value is 0 or 0.0 (either case) and should be validated.</p>
  
  <p>Also when click on submit button, it does not loop through the inputs.</p>
  
  <p>Any ideas how to make it work ?</p>