Email lists > Ruby on rails spinoffs > [Rails-spinoffs] Re: How to manipulate multiple dom elements simultaneously > [Rails-spinoffs] Re: How to manipulate multiple dom elements simultaneously

[Rails-spinoffs] Re: How to manipulate multiple dom elements simultaneously




This post if a part of  this thread

2008-02-23 07:36:01
Re: How to manipulate multiple dom elements simultaneously
Take a look at documentation [1]. It explains how to do
exactly what
you need.

[1] http
://www.prototypejs.org/api/enumerable/invoke


On Feb 23, 6:20 am, sl_sub <hive...gmail.com> wrote:
> Hi
>
> Please tell me how to achieve the below. I am trying to
manipulate
> multiple dom elements simulatenously , for eg: adding
class names to
> multiple dom elements
>
>
$("id1","id2","id3").invoke(ad
dClassName('someclassname'); ??
> $$('div').invoke(removeClassName('somestyle')); ??
>
> With invoke we may use dom extended methods that don;t
need arguments
> like hide, show. But how to use extended methods like
addClassName,
> removeClassName and many more as these needs
arguments.
>
> Thank you in advance.
> Velan
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


about | contact  Other archives ( Real Estate discussion Medical topics )