I suspect that "[EMAIL PROTECTED]" would work, although again, I would not rely
on bad XHTML.

-- Yehuda

On 1/25/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:

On 1/25/07, jgrucza <[EMAIL PROTECTED]> wrote:
>
> Two different kinds of pages each have an element with the same ID.  I
> want
> my Javascript to only affect the element on one of those pages.  So I
> precede the ID with the class name I use for that page type, to target
> the
> right one.  Isn't this a reasonable use case?
>

Agreed; Just because element IDs have to be unique doesn't mean that the
element has to be in the same place on every page.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to