I am trying to use html()
function of jquery over the specific child like:
<div id="main">
<p>I am p tag</p>
<span> i am span tag</span>
</div>
Now if we use $("#main").html()
it gives both p
and span
but if i want only p
, what should i do?
I am p tag
` – King Kong Jun 14 '12 at 16:10