W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2005

Question

From: Serkant Karaca <skaraca@internetteyim.net>
Date: Tue, 18 Oct 2005 23:38:48 +0300
Message-ID: <021901c5d423$f1989620$862bd751@ankara>
To: <www-dom@w3.org>
Currently, I'd like to reference a form from my javascript in the following manner:
document.forms[0][0].value = itemt;

I'd prefer to reference it by Name.  It has a Name, but not an Id.  Is this a problem?  Can I reference by name, and if so, how?  I've tried it before, but it didn't work.  Help.

Serkant KARACA
Senior Software Engineer
Ankara/Turkey

http://melekleradasi.blogspot.com
http://www.internetteyim.net
Received on Tuesday, 18 October 2005 20:38:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT