title: Get all checkboxes under a given dom element using jquery
body: <p>First, let me admit I haven't used jquery very much.</p>
  
  <p>I know I can get all checkboxes under a div with the id #mydiv by using</p>
  
  <pre><code>var boxes = $('#mydiv input[type*=checkbox]');
  </code></pre>
  
  <p>but what if this is in an external script and I pass in the id? Can I do something like</p>
  
  <pre><code>function myFunct(divId)
  {
  var boxes = $('#' + divId + ' input[type*=checkbox]');
  // do something to the boxes here
  }
  </code></pre>
  
  <p>or is there a way that I can create the jquery object for the div by $('#myDiv')and find the checkboxes under that?</p>