out of interest, is there an equivilent get-elements-by-classname in 1.4 ? I couldn't see one and I am curious about what strategy people use in 1.4..
Best Matt Maninder, Singh wrote: > Hey Will, > > $$ function is used for finding DOM elements by simple CSS selector > strings. > > Example: Find all <img> elements inside <p> elements with class > "summary", all inside > the <div> with id "page". Hide each matched <img> tag. > > $$('div#page p.summary img').each(Element.hide) > > Hope this helps! > > Thanks, > Mandy. > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Will > Merrell > Sent: Wednesday, June 07, 2006 7:55 AM > To: rails-spinoffs@lists.rubyonrails.org > Subject: [Rails-spinoffs] What if $$() for? > > > 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 > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs