I have a readmore
button which is generated with Ajax and now I am using below code to execute a click event from this button, but nothing happens.
The button when clicked should unhide a div which is also dynamic and generated with Ajax. So this is all dynamic content I am dealing any ideas please. Thanks.
jQuery:
jQuery(document).on('click', '#readmore', function(e){
e.preventDefault();
alert("you clicked the button");
jQuery("#bodytext").css("display", "block");
});