[Javascript] Check if ID exist

David Dorward david at dorward.me.uk
Fri Aug 18 13:53:23 CDT 2006


On Fri, Aug 18, 2006 at 03:43:00PM -0300, Jo?o C?ndido de Souza Neto wrote:
> elements = document.getElementsById("msgsubject");

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

-- 
David Dorward                                      http://dorward.me.uk




More information about the Javascript mailing list