title: Disable rest of the numeric boxes once sum reaches 100
body: <p>I am working on a setup where I have multiple rows in a table asking for numeric input. I want to disable rest of the text boxes as soon as sum reaches 100.</p>
  
  <p>My alert in condition is working fine but unable to select the empty text boxes to disable them. Also, alert is working only if I enter 100 in first input box. For rest of the boxes even alert is not working.</p>
  
  <p>Please help, below is my code-</p>
  
  <pre><code>function checkTotal() {
      var sum=0;
      $("#fieldset_Q14 table tbody tr").each(function() {
          sum += parseInt($(this).find("input:text:last").val());
          if (sum==100) {
              //alert("test");
              $("input:text[value='']").prop('disabled',true);
          }
          else{
              $("input:text[value='']").prop('disabled',false);
          }
      })
  }
  
  $(document).ready(checkTotal);
  $("input:text").keyup(checkTotal);
  </code></pre>