title: How to check if all checkboxes inside a div are checked using jQuery?
body: <p>this fails:</p>
  
  <pre><code>var all_checkboxes = $('#myDiv input[type="checkbox"]');
  
  if (all_checkboxes.is(':checked')) {
     alert('they are all checked');
  }
  </code></pre>
  
  <p>it alerts they are all checked even if just one and not all is checked.</p>