What initially threw me in jQuery was filter() vs. find().  filter() gets
the *subset* of elements that match some selector, where find() gets the *
children* of elements that match some selector.

-Fred

On Sun, Jul 6, 2008 at 11:33 AM, kangax <[EMAIL PROTECTED]> wrote:

>
> I'm not sure what jQuery's .find does, but you can use #reject to find
> all "hidden" elements (since prototype.js only supports "standard"
> selectors):
> $$('.class').reject(Element.visible)
> Note that since Element.visible only checks actual element's style, it
> will skip any elements which have "hidden" parents.
>
> -- kangax



-- 
Science answers questions; philosophy questions answers.

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