[thelist] getting text from a label tag?

.jeff jeff at members.evolt.org
Fri Nov 1 16:22:01 CST 2002


tom,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Tom Dell'Aringa
>
> Anyone know how to get the text from a label tag? For
> example I want to get 'snowman' from:
>
> <label for="somefield">snowman</label>
>
> If I give it an ID I can access it as an object, but so
> far no luck in getting the text. obj.text or obj.value
> doesn't work..
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

try innerText;

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list