Hey there!
Keith Davis a écrit :
> Could you give some examples of using $$? I don't quite understand your
> description. Is there any documentation on it?
a) my upcoming book documents it, but it's going to be in French! :-)
b) basically, $$ takes a *CSS RULE*. 'know CSS? You know $$.
Note that $$, like $, automagically extends the elements it returns,
which means all Element.blah(elt, ...) methods are available
"first-person" on resulting elements:
$('yourId').blah(...);
$$('#container .yourClass[lang!=en]').each(function(e) {
e.blah(...);
});
As I said a couple times, if you're just going for a single CSS class
name, use getElementsByClassName (either at the document or element
level) instead.
--
Christophe Porteneuve aka TDD
[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
-~----------~----~----~----~------~----~------~--~---