I have thr following code and I'm tring to delete the text inside the father element ('ttt') without deleting the children elements. How can I achieve that? thanks.
My code:
<td>ttt
<input class="edit dialogBtn" type="button" value="Edit" onclick="initiateDialog($(this))">
<div data-id="E81K900104" hidden="hidden">ttt</div>
</td>