logo       

Re: cloning nodes vs. creating new() ones: msg#00082

java.enhydra.xmlc

Subject: Re: cloning nodes vs. creating new() ones

V Út, 16. 09. 2003 v 10:20, Matthew Hixson píše:
> I still can't seem to get away from using getFirstChild() to get ahold
> of the text inside the <option> tag, like so:
>
> <option id="teacherName">Mrs. Wormwood</option>
>
> How do you access the "Mrs. Wormwood" part?

Use the span tag.

<option id="teacherOption"><span id="teacherName">Mrs.
Wormwood</span></option>

Then it will be as easy as page.setTextTeacherName("new name");

Petr


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise