run jquery code on loaded page via jquery ajax request (load)
<p>I am loading an entire middle div via JQuery Ajax call and I simply want to run $(document).ready on the loaded page </p>

<p>header.php loads part of the page </p>

<pre><code>var $next = $("&lt;div class='nextab center'&gt;").insertAfter('#content .current');
        $next.load($this.attr('href')+ ' #content .center section' , function(resp) { ...
</code></pre>

<p>}</p>

<p>so for example when header.php loads career.php it does not run all the code that is inside the $(document).ready(function(){ that is on career.php</p>

<p>I was thinking of creating a function init on each page loaded but not sure how to call this function from the load callback</p>

<p>Thanks </p>
