title: Enable button when checkboxes selected
body: <p>I have multiple checkboxes and a submit button that is initially disabled. When checking a box the button is enabled and when unchecking, the button is disabled again. </p>
  
  <p>If have multiple checkboxes selected but uncheck one, the button becomes disabled even though I have selected other checkboxes. How can I fix this issue?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt; 
  $(function() {
      $(".checkbox").click(function() {
        $(".delete").attr("disabled", !this.checked);
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;input type="checkbox" name="msg[]" value="32" class="checkbox" /&gt;
  &lt;input type="checkbox" name="msg[]" value="44" class="checkbox" /&gt;
  &lt;input type="checkbox" name="msg[]" value="26" class="checkbox" /&gt;
  
  &lt;button type="submit" class="delete" disabled="disabled"&gt;Delete&lt;/button&gt;
  </code></pre>