I am unable to use click() event on a button which is loaded through
html().
$.post('includes/addconnectordetails.php',{connnumb: connno},function(data){
$('#divgeneratecheck').html(data);
});
I am loading a form from addconnectordetails.php page on div#divgeneratecheck, form is loading but i am not able to use .click() event on the button displayed in the form. How can I do that ?
You need to use
.on, you have to attach it to a parent of the items you want to have the event. I use body, but in your case could be #divgeneratecheckJust replace selector with the parts of the dom you want to attach the event to. (like #btn1 or .button)