I load some HTML code into a div using the .load af jQuery function, which contains some code that I want to execute;
$.ajax({
type: "GET",
url: url,
dataType: "html",
success: function(data){
}
});
After loading the request ajax alert (); The function works, but the someFunction function will not.
$(document).ready(function(){
alert('TEST');
someFunction("#debug",'var');
});
How can I execute this function from an Ajax call
A function executed as <a onclick="someFunction()"will also not work.
source
share