Whipped up a demo page:
http://www.commadot.com/jquery/selectors/

I think this is doing what you want.

John
I haven't tried, but I assume that this is impossible:
$("div[rel~!=foo]") to mean doesn't contain foo.
Is that correct?

Glen

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