Question about #text
- From: "Tom Cole" <tcole6@xxxxxxxxx>
- Date: 30 Mar 2007 06:19:24 -0700
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.
.
- Follow-Ups:
- Re: Question about #text
- From: scripts.contact
- Re: Question about #text
- From: Marc
- Re: Question about #text
- Prev by Date: How to call a x.class function from JScript (Java newbie)
- Next by Date: Re: About the DOM document object
- Previous by thread: How to call a x.class function from JScript (Java newbie)
- Next by thread: Re: Question about #text
- Index(es):
Relevant Pages
|