JQuery .load() doesn’t load script

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 Solution

how about using .getScript()

http://api.jquery.com/jQuery.getScript/