I have jQuery .load()
function like in load_to.html page
$('#targetID').load('/load_from.html #bodyPart, script')
However, this doesn't seems to be loading javascript from load_from.html page. Is there any way, I can load javascript.
jquery
I have jQuery .load()
function like in load_to.html page
$('#targetID').load('/load_from.html #bodyPart, script')
However, this doesn't seems to be loading javascript from load_from.html page. Is there any way, I can load javascript.
Best Answer
how about using .getScript()
http://api.jquery.com/jQuery.getScript/