title: Disable all inputs in row where one input value is 0
body: <p>I want to loop through a table and get the value of an input in a specific row.  If that value is <code>0</code> disable all the inputs in that row.</p>
  
  <p>Here's my latest unsuccessful attempt.</p>
  
  <pre><code>$('.hiderow-0 input[id*="Quantity"]').each(function() {
     if($(this ).val() == 0){
       $(this).closest('tr').find("input,button,textarea").attr('disabled',true);
      }
  
   });
  </code></pre>
  
  <p>Example HTML </p>
  
  <pre><code>&lt;table&gt;
  &lt;tr class='hiderow-0'&gt;&lt;td&gt;&lt;select name="data[TransactionItem][0][quantity]" id="TransactionItem0Quantity"&gt;
  &lt;option value="0" selected="selected"&gt;0&lt;/option&gt;
  &lt;option value="1"&gt;1&lt;/option&gt;
  &lt;option value="2" &gt;2&lt;/option&gt;
  &lt;option value="3"&gt;3&lt;/option&gt;
  &lt;option value="4"&gt;4&lt;/option&gt;
  &lt;option value="5"&gt;5&lt;/option&gt;
  &lt;/select&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input name="data[TransactionItem][0][note]" value=""  maxlength="100" type="text" id="TransactionItem0Note"/&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="checkbox" name="data[TransactionItem][0][waitlisted]"  class="waitlisted" options="0 1" value="1" id="TransactionItem0Waitlisted"/&gt;    
  &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>