Hi, In the current version, I'm pretty sure you'd want to write your own "matching child" that is effectively:
var matchingChild = element.childElements().find(function(child) { return child.hasClassName("bar"); }); I believe that when Prototype incorporates Sizzle (I think that's coming in v1.7), there will be a way to do this via a selector instead. FWIW, -- T.J. Crowder tj / crowder software / com www.crowdersoftware.com On Sep 28, 6:28 pm, Alan Gutierrez <a...@blogometer.com> wrote: > Hard to google because select is so overloaded, so if you could help... > > What is the equivalent of... > > $$('#foo > .bar').first(); > > when you select from '#foo'?j > > $('foo').select(/* What goes here? */); > > Or is it simply not possible? > > Alan Gutierrez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---