It should also hopefully be a little faster as it's only performing a single call to not() :)
On May 25, 12:11 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > Thank you Gordon, this indeed works too : $("a,button").not ('.external, > .thickbox, #shortcuts a') > > Great! > > -----Original Message----- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Gordon > Sent: vendredi 25 mai 2007 11:05 > To: jQuery (English) > Subject: [jQuery] Re: excluding elements > > Haven't actually tried these out but they might be worth a try. > > $("a,button").not ('.external, .thickbox, #shortcuts a') > > or > > $("a,button").not('.external').not ('.thickbox').not (#shortcuts a') > > On May 25, 11:59 am, "Alexandre Plennevaux" <[EMAIL PROTECTED]> > wrote: > > hello friends! > > > a quick question: i would like to exclude a few elements wich have > specific classes from my selection. I just don't find the right syntax: > > > i tried that: > > > $("a,button").not($('.external','.thickbox','#shortcuts > a')).click(function(){ > > showLoadingUI(); > > > }); > > > but it does not function, even A elemnets with the specified classes > trigger the behaviour. Can you tell me how to code this properly? > > > maybe i should chain the not() instead? > > > thanks a lot! > > > Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte > > Lakensestraat/Rue de Laeken 104 B-1000 Brussel-Bruxelles-Brussels > > Belgie-Belgique-Belgium > > > Tel:+32(0)2.219.65.55 > > Fax:+32(0)2.426.69.86 > > Mobile:+32(0)476.23.21.42 > > HYPERLINK "blocked::http://www.lab-au.com/"http://www.lab-au.com > > HYPERLINK > > "blocked::http://www.mediaruimte.be/"http://www.mediaruimte.be > > > HYPERLINK > > "blocked::http://www.mediaruimte.be/"_________________________________ > > _________________________________________ > > > The information in this e-mail is intended only for the addressee named > above. If you are not that addressee, please note that any disclosure, > distribution or copying of this e-mail is prohibited. > > Because e-mail can be electronically altered, the integrity of this > communication cannot be guaranteed. > > > ______________________________________________________________________ > > ____ > > > Ce message Envoi est certifié sans virus connu. > > Analyse effectuée par AVG. > > Version: 7.5.467 / Base de données virus: 269.8.0/817 - Date: > > 24/05/2007 16:01 > > Ce message Envoi est certifié sans virus connu. > Analyse effectuée par AVG. > Version: 7.5.467 / Base de données virus: 269.8.0/817 - Date: 24/05/2007 > 16:01