I am using the following way in order to insert an external html page into my div:
$.ajax({
url: "myHTML.html",
method: 'GET',
success: function (data) {
$("#outputDiv").html(data);
},
Error: function (err) {
alert("ERROR: " + err);
}
});
which works fine, the issue is that I would like to run some JavaScript functions that are located in the "myHTML.html" file, Is there a way to do something like that?
Thanks (=