$$("....").each(function(node){ node.getElementsBySelector("a.myclass"); })
http://prototypejs.org/api/element/getelementsbyselector/ Is this what you mean? On 10/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Oh, the "select" method, I haven't use it, and the context is > important for the css selector, and in the case > Selector.findChildElements supports the context, So only change the $ > $ function and to check whether the last argument is HTML element or > not is enough. And context is really very important for css selector, > it make the selector much more flexible.especially in the > $$("....").each(function(node){ > $$("....",node).doSomething() > }) > > On Oct 17, 6:43 pm, "Mislav Marohni " <[EMAIL PROTECTED]> > wrote: > > On 10/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > > > I think is is good to create a new function > > > called "$$$" or something like that to make a short selector function > > > and supports context. > > > > We use "Element#select" to constrain the lookup to a certain element: > > > > $("foo").select("img") > > > > We discussed adding a context argument to $$ a while ago, but it just didn't > > turn out worthwhile, I guess. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---