[Javascript] Check if ID exist

Peter Lauri lists at dwsasia.com
Fri Aug 18 13:57:23 CDT 2006


[snip]
There is no such method, it is "Element", not "Elements", and (in a
given document) no two elements may share the same id.
[/snip]

There are many designers who use the ID for the CSS property, where it
should not be used. That is logical not good to have multiple ID, but if you
do not have any JavaScript running on the page it still works :)




More information about the Javascript mailing list