Possible Duplicate:
Remove text with jQuery
I want to remove the text from a div
, but that div
contains other nodes.
If i use $("#hwiTestimonial").text("");
it erases the <br/>
and the <div>
as well. How can I only specify to remove the text, without any nodes?
<div id="hwiTestimonial">
" Bla bla"
<br/>
<div>....</div>
</div>