Load div contents into a different div
<p>I have a value which is created around the middle of a page and I want to show it in the header...</p>

<p>So, I have the following:</p>

<pre><code>&lt;div id=lines style=display:none;&gt;&lt;? echo ($line_no-1); ?&gt;&lt;/div&gt;
</code></pre>

<p>Now, I want to load that value ($line_no-1) into a div in the header. So as you can see I store it into a div, turn off the display, and then use the following to try to load it into the div above    </p>

<pre><code>&lt;script type="text/JavaScript"&gt;
    $(document).ready(function(){
        $("#lines2").load("/ #lines");
    });
&lt;/script&gt;
</code></pre>

<p>It simply doesn't work and I think I've tried every combination now</p>

<p>What I'd rather do is simply load the variable into the div above but have searched and searched for a way to do this with no luck.</p>
