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
-~----------~----~----~----~------~----~------~--~---

Reply via email to