How to retrive value in jquery
- by Wondering
Hi All,
in my js I have a var in which i have stored innerHTML.
the var is having value something like
<h2>headline<h2>
<div>....</div>
...........
Now I want to retrieve value of h2 tag..what I am doing is
$(myvar).find("h2").text()
but its not working...what should be the exact syntax.
Thanks.