title: Disable form button unless all text input fields are filled in
body: <p>I have a form that has multiple text inputs, I don't want to add id to each one as they are generated from server side code - number of fields may differ etc. I just want to be able to disable the submit button until there is text entered into each text input. </p>
  
  <p>I have gotten this far, but only disables button until text entered in to one text input field - I want it to stay disabled until text entered in to <strong>all</strong> text inputs.</p>
  
  <pre><code>    &lt;script&gt;
          $(function () {
              $('#button').attr('disabled', true);
  
              $('input:text').keyup(function () {
                  $('#button').prop('disabled', this.value == "" ? true : false);
              })
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>I have also tried <code>$('input:text').each().keyup(function (){</code> - but does not make button clickable?</p>