[thelist] getting text from a label tag? SOLVED

Tom Dell'Aringa pixelmech at yahoo.com
Fri Nov 1 18:13:01 CST 2002


--- ".jeff" <jeff at members.evolt.org> wrote:
> 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;
>

Yes, perfect, why didn't I think of that..thanks Jeff.

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/



More information about the thelist mailing list