I load some HTML code into a div with the .load function af jQuery that contains some code I want to execute;
$.ajax({
type: \"GET\",
url: url,
dataT
Why wouldn't you use the callback function that's already available in your ajax call?
$.ajax({
type: "GET",
url: url,
dataType: "html",
success: function(data){
alert('TEST'); //this works
someFunction("#debug",'var');//this doesn't
}});
I would take a closer look at how you are architecting the code