title: Toggle Checkboxes on/off
body: <p>I have the following:</p>
  
  <pre><code>$(document).ready(function()
  {
      $("#select-all-teammembers").click(function() {
          $("input[name=recipients\\[\\]]").attr('checked', true);
      });                 
  });
  </code></pre>
  
  <p>I'd like the <code>id="select-all-teammembers"</code> when clicked to toggle between checked and unchecked. Ideas? that aren't dozens of lines of code?</p>