T
Tom Cole
Let's say I have the following:
<div id="master">
This is master part 1
<div id="slave">
This is slave
</div>
This is master part 2
</div>
I can call document.getElementById('master').childNodes.length and get
3.
My question is this: how can I determine that childNodes[0] is a #text
node and how can I change it without affecting the rest (i.e. the
slave div node and the second #text node).
Thanks.
<div id="master">
This is master part 1
<div id="slave">
This is slave
</div>
This is master part 2
</div>
I can call document.getElementById('master').childNodes.length and get
3.
My question is this: how can I determine that childNodes[0] is a #text
node and how can I change it without affecting the rest (i.e. the
slave div node and the second #text node).
Thanks.