Yeah that's basically what I'm doing. But I'm getting an error message with
that selector for pages where there are no matching elements.
wycats wrote:
>
> Why not just have a container (say... html) have the class of that page
> type.
>
> Then you can do $("html.this div#id")
>
> -- Yehuda
>
> On 1/25/07, Olaf Bosch <[EMAIL PROTECTED]> wrote:
>>
>> jgrucza schrieb:
>> > Yeah I know that, but consider this situation:
>> >
>> > 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?
>> >
>> > Jennifer
>>
>> Haha, Jennifer, you search a selector for
>>
>> <div id="thisID" class="thisCLASS">
>>
>> right? ;)
>>
>> --
>> Viele Grüße, Olaf
>>
>> -------------------------------
>> [EMAIL PROTECTED]
>> http://olaf-bosch.de
>> www.akitafreund.de
>> -------------------------------
>>
>> _______________________________________________
>> 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/
>
>
--
View this message in context:
http://www.nabble.com/simple-selector-with-ID-doesn%27t-work-anymore-tf3080046.html#a8641247
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/