$$() is like $() but selects an array of elements via a CSS selector.
Thus,
$$('div.someclass')
returns an array of all DIV elements on the page that have a CSS class
of "someclass" set.
For example, you can do:
$$('#info p.notice').each(Element.hide);
This will hide all P elements that have a CSS class of "notice" that
are inside
the element with id "info".
-Thomas
Am 07.06.2006 um 04:25 schrieb Will Merrell:
In the prototype.js library, what doe the $$ function do, and how
do you use it
--Will Merrell
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
Thomas Fuchs
wollzelle
http://www.wollzelle.com
http://www.fluxiom.com :: online digital asset management
http://script.aculo.us :: Web 2.0 JavaScript
http://mir.aculo.us :: Where no web developer has gone before
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs