Attach event to results of a JQuery $.get call
<p>I am getting a list of checkboxes from a $.get call in JQuery.  Is there anyway I can attach an onclick function to each of these checkboxes from within the parent page.</p>

<p>e.g. The parent page would contain the following code (maybe errors as I have just wrote it off the top of my head and not tested it)</p>

<pre><code>$(document).ready(function(){
  $(":checkbox").click(function(){
    //do some stuff
  }

  $.get('some-url.html', function(data){
    $('checkbox-holder').html(data);
  });
}
</code></pre>

<p>Therefore any results returned from 'some-url.html' would automatically have an onclick event</p>

<p>Thanks</p>
