title: Disable Submit button until Input fields filled in
body: <p>Was wondering if anyone could point me in the right direction with the following piece of jquery. I want to disable the submit button until my input fields have been filled in.</p>
  
  <p>I have come up with this</p>
  
  <pre><code>$(document).ready(function (){
   if ($('#inputName, #inputEmail, #inputTel').val().length &gt; 0) {
    $("input[type=submit]").attr("disabled", "false");
   }
   else {
    $("input[type=submit]").attr("disabled", "true");
   }
  });
  </code></pre>
  
  <p>but the button is permanently disabled, Even after filling in all the text input fields</p>
  
  <p>Still learning Jquery and haven't used it for a while.. So any pointers appreciated</p>
  
  <p>Thanks</p>