Thanks John

Unfortunately your example doesn't work, but it certainly gives me a
fresh direction to explore. I had no idea that :not() could be used
inside an expression in that way!

Cheers
Ollie

On 01/01/07, John Resig <[EMAIL PROTECTED]> wrote:
> The issue is that what you're trying to do is currently
> (unfortunately) not supported by the jQuery selector engine. The
> selector isn't "that bad":
> $("li:not([ol:not([EMAIL PROTECTED])])")
>
> The problem is that you have both nested () and nested [] - both of
> which fail in jQuery (it's quite fickle right now).
>
> So, the only solution that'll solve your problem would by one that's
> much more verbose:
>
> $("li").filter(function(){
>   return $("ol:not([EMAIL PROTECTED])", this).length == 0;
> });
>
> (Both of these are untested, but they should do the trick or, at
> least, put you on the right path)
>
> Hope this helps!
>
> --John

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to