Mark Holton a écrit :
> Chris,
> Many thanks! I did not know about 'first-child' or '>' ... have been
> using $$('a'), $$('#foo'), etc for grabbing arrays of links, divs, etc.
> ...this takes it a step further! ...the power of Prototype is awesome.
$$('#x') is actually a convoluted, slower way of doing $('x')...
Just look at the online ref [1], and dive into the CSS3 Selectors [2]
spec. Plenty of jewels in there.
[1] http://prototypejs.org/api/utility/dollar-dollar
[2] http://www.w3.org/TR/css3-selectors/
--
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---