After the page is loaded, I can add a class with jquery as follows.
$(document).ready(function() {
$("#parent").click(function(){
$(".child").addClass("active");
});
});
but I can't catch the click on the added class, it doesn't work.
$(".child.active").click(function(){
alert('this is clicked');
});
would you please help me.