jquery variables, functions and the wrap tag (beginner)
<p><strong>Issues 1:</strong></p>

<pre><code>$('#msg').html($('#quote').text());
</code></pre>

<p>now changed quote for a variable - quotevar:</p>

<pre><code>$("#msg").html(quotevar);
</code></pre>

<p>How would I incorporate the text function there to get the same result I did with #quote? I can't even seem to understand how to properly handle variables and functions in jquery.</p>

<p><strong>Issue 2:</strong></p>

<p>I need to add [quote] [/quote] bbode tags <strong>around</strong> my variable quotevar. This is actually the reason I created the variable in issue 1. </p>

<p>If it's possible to do it without the new var using this:
<code>$('#msg').html($('#quote').text());</code> then I'd like to know how that is done also.</p>

<p>I assume the wrap() function is needed to add the tags.</p>
