JQuery .load and html issue
<p>I am trying to use Javascript to load different pages when you press a link. Here is the function I am using to change the page.</p>

<pre><code>function loadPage(url){
    $(".body").fadeOut(400, function(){
        $(".body").load(url, function(){
            $(".body").fadeIn(400);
        });
    });
};
</code></pre>

<p>The problem is, it fades the stuff into the page, but it disappears once the fadeIn is done. The code html from the file is still in the main files html, it just doesn't show up.</p>
