title: Toggle check/uncheck for multiple checkbox lists using jQuery
body: <p>I have two problems with checking and unchecking (select and deselect all) a checkboxlist:</p>
  
  <ol>
  <li>The parent checkbox does not check/uncheck.</li>
  <li>I need to only select the children.</li>
  </ol>
  
  <p>Example:</p>
  
  <p><a href="http://jsfiddle.net/TheFiddler/v6wmV/" rel="nofollow">http://jsfiddle.net/TheFiddler/v6wmV/</a>,</p>
  
  <pre><code>$(document).ready(function(){
      $('.all').toggle(
          function() {
              $('.check').find('input[type=checkbox]').attr('checked', true);
          },
          function() {
              $('.check').find('input[type=checkbox]').attr('checked', false);
          });
  });
  </code></pre>
  
  <p>Right now, I have the event on a class, and since the class is shared by both checkbox lists, they all toggle.</p>