I have this code
$(".insert").click(function(){
$(".insert").ajaxStop(function(){
$(".load").hide();
});
$(".insert").ajaxStart(function(){
$(".load").show();
});
$.ajax({
type: "GET",
url: "edit.php",
data: "action=add",
success: function(msg){
$(".control").append(msg);
}
});
});
as you can see, this code adds the edit.php HTML response to .control
problem
after adding html .. all jquery changes will not be applied in it .. because $ (document) .ready () has already been called before, this HTML code was born ...
Can I call $ (document) .ready () while I make any changes?
source
share