Sure it works:
http://dev.jquery.com/~john/test/not.html

Glen: You don't wanna be using the attribute selectors that you
mention, they won't work like you'd hope (on only one class) or very
slowly (class selection is highly optimized).

--John

On 7/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I see.  It doesn't appear to work for elements that have two classes :
(

<div class="class1 class2"></div> for instance

On Jul 3, 6:40 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> $("#container > element.class:not(.class2)")
>
> Enjoy!
>
> --John
>
> On 7/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'd like to be able to select all elements in a container except
> > element.class2 for example, is that possible?
>
> > Thanks... haven't found any docs on this!


Reply via email to