Run functions after load() (function from the loaded page)
I have a nproblem with running commands from a loaded page;
AA.html
$("#X").load('BB.html');
BB.html
$(document).ready(function () {
alert("X");
});
Now i want to execute the alert() on page BB.html when doing the load on page AA.html. How can this be done?