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

Chris Tifer christ at saeweb.com
Wed Nov 12 15:52:21 CST 2003


> Generally, I try to keep my ids unique (except perhaps for
> radio buttons, which already share a group id anyway).  I guess it boils
> down to personal programming preferences.

Oh, I definitely agree that IDs should be unique. I just wasn't sure if
that's what you were hinting at. I've found getElementById is very reliable
in all newer versions, so I say adopt it if possible. Hopefully if enough of
us use it they will keep it as a 'standard' if there is one out there.




More information about the Javascript mailing list