output with javascript/jquery
<p>I have a script that runs within the body. How can I make it output directly after itself. Similar to echo in php.</p>

<p>e.g.</p>

<pre><code>    &lt;div id="text"&gt;Text&lt;/div&gt;

    &lt;div id="someotherdiv"&gt;
    The text above says 
    &lt;script&gt;
    $('#text').html().echo?;
    &lt;/script&gt;
    &lt;/div&gt;
</code></pre>
