How to edit the text of a div
or of your children by clicking on the text with JavaScript or jQuery ?
Example, by double-clicking Text Here you can change the text and / or delete it
#alterar {background:#e3e3e3;padding:15px;}
#naoAlterar {background:#ccc;padding:5px;margin:-5px}
<div id="alterar">
Texto aqui
<p>Texto aqui</p>
<span>Texto aqui</span>
<br/><br/>
<div id="naoAlterar">Texto aqui</div>
</div>