title: Disable button if no checkbox is checked jquery
body: <p>I have a jquery function for multiple delete.</p>
  
  <pre><code>  $('input.delete-selected[type="submit"]').attr('disabled','disabled');
    $('[id^=partners_], [id^=invitations_], [id^=clients_], [id^=partner_services_], [id^=partner_products_]').on("click", function (event) {
    if ($(this).is(":checked")) {
          $('input.delete-selected[type="submit"]').removeAttr('disabled');
      } else {
          $('input.delete-selected[type="submit"]').attr('disabled', 'disabled');
      }
    })
  </code></pre>
  
  <p>The problem is, if I have 2 items, select both and then deselect one of them, the 'delete' button disables again.</p>
  
  <p>How can I disable the button only if no checkbox is checked?
  Do I have to implement an each function?</p>