Hi, 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.
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)
$(document).ready(function(){
$(":checkbox").click(function(){
//do some stuff
}
$.get('some-url.html', function(data){
$('checkbox-holder').html(data);
});
}
Therefore any results returned from 'some-url.html' would automatically have an onclick event
Thanks