If I've understood you correctly you want to target more than one selector, you can just comma separate them:
$('#firstTarget A, .secondTagets A, A.third).doStuff() On Apr 24, 12:38 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > hello! > > Hopefully a simple question, for which i did not find the answer in the doc: > > i have defined a series of behaviours to happen when a specific element is > clicked on. Now, i'm feeding through ajax a small menu which a anchors should > also have this behaviour. > > so i wold like to know if i can have multiple selectors in one jquery() > instance: > > This is my code, if you need to see it for better understanding: > > $(".detailsSubnav a").click(function(){ > $(".detailsSubnav a").removeClass("selected"); > $(this).addClass("selected"); > myUrl = $(this).attr("href")+"&js=1"; > $this = $("div#leftCol"); > $this.load(myUrl,'',function(){ > $this.fadeIn("slow").Pulsate(50,1); > }); > return false; > }); > > Thanks a lot in advance for your tips ! > > 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.465 / Base de données virus: 269.5.10/774 - Date: 23/04/2007 > 17:26 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery (English)" group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~----------~----~----~----~------~----~------~--~---