How to .load() just a specific div from a page into a a target div, not the whole page
<p>I have the following script that loads a page into a div and not just the targeted div. This is most evident when going back to my index and my header and footer are jammed into the <code>&lt;div id="contentspace"&gt;&lt;/div&gt;</code>.</p>

<p>I read on here somewhere that the div needs to be placed in it's own page prior to being displayed. Not sure which method would do that. Is this possible without hashtags Thanks for your help     </p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(function() {
        $('#header a').click(function() {
            $('#contentspace').empty();
            $("#contentspace").load(this.href, function(response){
                console.log($('#content', response).html())
                event.preventDefault();
            });
        });
    });
&lt;/script&gt;
</code></pre>
