Dan, not sure what Array#match is, but #grep could do this nicely : ) $(someElement).siblings().grep(new Selector('.someClass'));
- kangax On Jun 19, 6:41 pm, "Dan Dorman" <[EMAIL PROTECTED]> wrote: > On Thu, Jun 19, 2008 at 4:35 PM, louis w <[EMAIL PROTECTED]> wrote: > > > is there an easier way then looping through the result of > > Element.siblings(); to check and see if an item has a sibling with a > > certain classname? > > Dunno if it's faster per se, but el.siblings().match('.className') looks nice > :) > > :Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---