How to change element text?

There is for example the element
the <div>
 some text
the <div>

</div>
the <div>
</div>
</div>

How to change the text of a diva but that all the elements inside it there?
July 9th 19 at 10:06
1 answer
July 9th 19 at 10:08
Solution
Better wrap this text, e.g. in span already and thus get to him.

codepen.io/anon/pen/GqgMRa
Do not have to wrap the text so it is in a separate text node is. - Bianka0 commented on July 9th 19 at 10:11

Find more questions by tags jQuery