How to retrieve value in jquery
<p>In my js I have a var in which I have stored innerHTML.
The var is having value something like</p>

<pre><code>                &lt;h2&gt;headline&lt;/h2&gt;
                &lt;div&gt;....&lt;/div&gt;
                 ...........
</code></pre>

<p>Now I want to retrieve value of h2 tag..what I am doing is</p>

<pre><code>           $(myvar).find("h2").text()
</code></pre>

<p>but its not working...what should be the exact syntax?
EDIT:</p>

<pre><code>                 alert(myvar)=&lt;h2&gt;headline&lt;/h2&gt;
                               &lt;div&gt;....&lt;/div&gt;
</code></pre>

<p>Thanks.</p>
