On index.html ; an action of the user would trigger a .load() event that load a document generated by php on a div. The loaded document would includes some javascript code. I would want to call the javascript function that is originally defined on index.html. How can it be done? Simply calling the function on the loaded document wouldn’t work.
Share
call the function you want in the callback argument of the load function
http://api.jquery.com/load/