title: jQuery use multiple condition in if statement
body: <p>i have 3 input fields like this</p>
  
  <pre><code>&lt;input type="text" id="from-price" name="from-price"/&gt;
  &lt;input type="text" id="to-price" name="to-price"/&gt;
  &lt;input type="text" id="price" name="price"/&gt;
  </code></pre>
  
  <p>and I want that when the values entered in all the fields it will show a button
  So for that I have my code like this</p>
  
  <pre><code>var val1 = jQuery('#from-price').val().length;
          var val2 = jQuery('#to-price').val().length;
          var val3 = jQuery('#price').val().length;
  if (val1 &amp;&amp; val2 &amp;&amp; val3  &lt; 1 ) {
                  jQuery('#add-fields').attr("disabled", false);
              }
  </code></pre>
  
  <p>But this is not working. </p>
  
  <p><strong>Update</strong>
  Every time I am getting length 0 why? Even after text entered?</p>