[thelist] Forms and getElementById
Rob Whitener
rwhitener at DesignOptions.com
Wed Jan 29 10:34:00 CST 2003
Thanks,
I found out quickly that that doesn't work. I wasn't sure if maybe there
was something I didn't know about the relationship between the document and
the form. It crashed and burned, I just forgot to remove that line before I
posted. Woops.
Rob
-----Original Message-----
From: Tom Dell'Aringa [mailto:pixelmech at yahoo.com]
Sent: Wednesday, January 29, 2003 11:31 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Forms and getElementById
--- Rob Whitener <rwhitener at DesignOptions.com> wrote:
> var tag = document.forms[0].getElementById("e_mail");
Rob, I've not seen GEBId used this way, maybe this is why..try:
var tag = document.getElementById("e_mail");
The method doesn't need to enter into the forms array to find an item
by the id (thus the name). You can access your tag directly by id.
HTH
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!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list