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-spinoffs googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---
|