[Javascript] javascript and id's
David Hucklesby
davidh126 at writeme.com
Tue Oct 4 23:34:37 CDT 2005
Anthony Ettinger wrote:
> Or should I give each form element it's own id...
One other consideration that makes getElementById the easy way to access
form elements is the use of the LABEL element. Adding a unique id to each
form element and targetting it with a FOR attribute in the LABEL makes the
form elements easier to access - you can click the LABEL's text to give the
INPUT focus and to set a radio button or checkbox.
Cordially,
David
--
David Hucklesby, on 10/4/2005
<http://www.hucklesby.com/>
--
More information about the Javascript
mailing list