Oh, sorry, I think I just had a blonde moment. :)  I found the not
( el ) docs and it sounded like it wasn't what I wanted, failed to
notice the other two nots listed under it.

On May 23, 1:39 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> $('p').not('.thisClass')
>
> From the doc:
>
> $("p").not( $("div p.selected") )
>
> Before
>
> <div><p>Hello</p><p class="selected">Hello Again</p></div>
>
> Result:
>
> [ <p>Hello</p> ]
>
>
>
>
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of Gordon
> Sent: mercredi 23 mai 2007 12:35
> To: jQuery (English)
> Subject: [jQuery] opposite of filter()
>
> Just a quick one, but I couldn't find documentation on how to do this.
>
> You can use filter() to include only the elements that match the specified
> criteria, but is there a way to exclude all elements that match the filter
> criteria?  for example:
>
> $('p').filter('.thisClass') would get all the paragraphs that have a class
> of thisClass, but how would you go about getting all the paragraphs that
> don't have a class of thisClass?
>
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.467 / Base de données virus: 269.7.6/815 - Date: 22/05/2007
> 15:49

Reply via email to