You misunderstood me, I just want to do something with x3 and x4, not all divs. (In a click() I want to hide all divs coming after the clicked div).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fazal Sent: Monday, December 04, 2006 1:30 PM To: discuss@jquery.com Subject: Re: [jQuery] siblings after a specified node Hi Nandi, you can use: $("#parent-element").find("div").each(function(i){ //do your stuff here } Fazal Kolman Nándor-2 wrote: > > Hi. > > > > Is there a simple way to get all the siblings after a specified node? > > Eg. : > > <div id="x1"></div> > > <div id="x2"></div> > > <div id="x3"></div> > > <div id="x4"></div> > > > > $('#x2').xxx() would give #x3, #x4 nodes. (Ids are not that simple, so I > cannot use them in an id match :-).) > > > > Thx. > > Nandi > > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/siblings-after-a-specified-node-tf2751362.html#a7675619 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/