[thelist] getting text from a label tag?

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


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..

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