// wont work
$(".questionCheckbox").click( function() {
alert("hi");
});
// will work
$(document).on('click', '.questionCheckbox', function(){
alert('test');
});
// during an ajax response
$("#questions").append("<input type=checkbox class=questionCheckbox value="+object.id+">"+object.question+"<br>");
Leave a Reply