it`s unlikely but possible for an id to be in the page for more than once..
i will try to avoid it :)

And thanx for the reply`s. it has been very helpfull.

2007/6/1, Sean Catchpole <[EMAIL PROTECTED]>:


As stated, the document.getElementById will only work on document, and
will only return the unique id.

It is in fact very bad practice to have multiple id's and it is not
unreasonable for javascript to fail if there are more than one. Just
use a class instead of an id if there needs to be multiple of them.

~Sean

Reply via email to