title: How to disable all input with same class based on it's value using jQuery
body: <p>I have multiple inputs of type number have same class</p>
  
  <pre><code> &lt;input type="number" class="InsideInvoice" value="@item.InsideQuantity" /&gt;
  </code></pre>
  
  <p>I want to disable each input with class "InsideInvoice" if it's value 0</p>
  
  <p>I tried:</p>
  
  <pre><code>$(".InsideInvoice").attr('disabled', this.val(0))
  </code></pre>
  
  <p>but it doesn't work</p>