[Javascript] how to refer to (x)html elements

Hassan Schroeder hassan at webtuitive.com
Wed Nov 12 12:18:11 CST 2003


Peter Brunone wrote:

> First of all, you should never give any of your elements the
> same name or id attribute...

Whoa, let's not overgeneralize :-)   IDs must be unique, names
not necessarily so; for instance

radio buttons
     Radio buttons are like checkboxes except that when several
     *share the same control name*, they are mutually exclusive ...

   **my emphasis

   cite: <http://www.w3.org/TR/html4/interact/forms.html#radio>

FWIW!
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.






More information about the Javascript mailing list