[thelist] Using variables in DOM object names

Jeff Howden jeff at jeffhowden.com
Wed Jul 13 11:28:34 CDT 2005


Christian,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Christian Heilmann
> 
> Yes, but labels only connect to IDs, not name
> attributes, therefore if you want to create an
> accessible, modern form, you need IDs anyway.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

That may be true, but accessing form elements by ID is non-intuitive while
accessing them via the elements collection is self-documenting and has much
wider UA support.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Actually you should also check that the elements are
> existant before trying to change them.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

Absolutely.

 [>] Jeff Howden
     jeff at jeffhowden.com
     http://jeffhowden.com/



More information about the thelist mailing list