I have a page and i'm loading an external html page via the following
$(document).ready(function() {
var url = 'GetRepQListComp.php' ;
$.ajax({url: url, cache: false,
success: function (html) {
document.getElementById("divQuickList").innerHTML = html ;
}
});
});
I have added a button to the html that is being imported. When loaded it will not call the click function from the main page. the following is in the same page(main page) as the above coding.
$(document).ready(function() {
$('#NewChkList').click(function() {
alert("chklist");
});
});
any solutions? thanks