title: onclick check checkboxes by name
body: <p>How to make this JS code to work with all the checkboxes within a td id="sel";</p>
  
  <pre><code>$(document).ready(function() {
      $('input[name="selector"]').click(function() {
          $("#sel :checkbox").attr('checked', $(this).is(':checked'));
      });
  });
  </code></pre>