I have a div with child divs and also some text. Using jQuery/JS I want to leave the child divs alone and remove the text.
<div id="parent">
<div>keep this</div>
<div>keep this</div>
Some random text that can't be predicted (to be removed)
<div>keep this</div>
</div>