hehe what Brandon said! cheers
Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find they make sense, conform to your experience, and don't harm yourself or others, only then should you accept them.' From: Brandon Aaron <brandon.aa...@gmail.com> To: jquery-en@googlegroups.com Date: 05/27/2009 05:54 PM Subject: [jQuery] Re: Reverse a collection of jQuery elements. $.fn.reverse = [].reverse; $('#some_selector').parents('li').reverse(); :) -- Brandon Aaron On Wed, May 27, 2009 at 4:51 PM, simshaun <simsh...@gmail.com> wrote: > > I need to reverse the collection jQuery returns when I use > > $("#some_selector").parents("li"); > > in order to build a path. > > Is this doable? It'd be nice if jQuery had a reverse() method. >
<<inline: graycol.gif>>
<<inline: ecblank.gif>>