Michael Price wrote:

[EMAIL PROTECTED] wrote:
Hi,

How can I use JQuery to discover if a particular ID occurs twice in my
page?  I can't use "View Source' because the DOM is changing as the
user interacts with the page.


Try:

if ($("#your_id_here").length > 1) {
   // CODE TO EXECUTE
}
No, that won't work. And ID-selector returns always zero or one elements. But you can use this:
$("[EMAIL PROTECTED]").size() > 1

--
Jörn Zaefferer

http://bassistance.de

Reply via email to