title: Make button enabled if checkboxes are checked in ASP.NET mvc
body: <p>In my project I have created a few checkboxes in a for loop:</p>
  
  <pre><code>for(int i=0; i&lt;10; i++)
  {
          {&lt;input type="checkbox" name="check"/&gt; @i&lt;br&gt;}
  }
  </code></pre>
  
  <p>I also have a button called "Delete" which is supposed to delete the selected items:</p>
  
  <pre><code>&lt;input type="button" id="DelButton" disabled value="Delete" /&gt;
  </code></pre>
  
  <p>For now the button will always be disabled, but I would like to know how it can become enabled if one or more checkboxes become checked.</p>