Organizational Research By

Surprising Reserch Topic

how can i change an elements text without changing its child elements


how can i change an elements text without changing its child elements  using -''

I'd like to update element's text dynamically:

<div>
   **text to change**
   <someChild>
       text that should not change
   </someChild>
   <someChild>
       text that should not change
   </someChild>
</div>


I'm new to jQuery, so this task seems to be quite challenging for me.
Could someone point me to a right function/selector to use?

If it is possible, I'd like to do it without adding a new container for the text I need to change.

Thanks in advance.
    

asked Sep 14, 2015 by Bea81N
0 votes
10 views



Related Hot Questions

9 Answers

0 votes
NULL
answered Sep 14, 2015 by JKappel
0 votes
NULL
answered Sep 14, 2015 by Arlene75Ssj
0 votes
NULL
answered Sep 14, 2015 by FelipaUPAYws
0 votes
NULL
answered Sep 14, 2015 by MalChristie
0 votes
NULL
answered Sep 14, 2015 by JenniferKeye
0 votes
NULL
answered Sep 14, 2015 by AnkRowland
0 votes
NULL
answered Sep 14, 2015 by GinZgu
0 votes
NULL
answered Sep 14, 2015 by BillKissner
0 votes
NULL
answered Sep 14, 2015 by GenKoertig

...