checking if the same ID appears twice on a page

Discussion in 'Javascript' started by laredotornado, May 17, 2007.

  1. Hi,

    I was curious to find a function that would tell me if a particular ID
    occurred more than once on a page. The twist on this question is that
    I can't do "View Source" because I have some JS that manipulates the
    DOM while the user is interacting with the page. But at an arbitrary
    point in time, I'd like to know if that manipulation has messed up and
    inserted the same ID more than once.

    Thanks for help, - Dave
    laredotornado, May 17, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.