Why isn't javascript working on page that has been loaded via jQuery's .load() function?
<p>I have a highlight form fields javascript that is linked in the head of my filea.php. I am loading another file called fileb.php which has a form in it. Now although filea.php is already referencing the external javascript with the highlight form fields code in it, the fields of the loaded page don't hightlight when selected i.e. the js isn't having any effect on the loaded page.</p>

<p>If I reference the external js file on the loaded page itself, it works fine. But why should I have to? For example there is no css referenced on fileb.php, however the form on that page is styled according to the style sheet that is referenced on filea.php. Why isn't it the same for scripts?</p>

<p>p.s. I'm loading the external js file BEFORE the .load function is performed so that shouldn't be an issue.</p>
