[thelist] getting text from a label tag?

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


> 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 at members.evolt.org

More information about the thelist mailing list