i never tried that, but i think you could iterate the elements with the
class name like:
$$('.clazz').each(function(e) {
e.toggle();
})
or else, you could write your own function, for example:
function toggle_all() {
toggle1();
toggle2();
..
}
function toggle1() {
...
}
function toggle2() {
...
}
On Mon, Mar 29, 2010 at 2:15 PM, Dudebot <[email protected]> wrote:
> On Mar 28, 11:10 pm, Yong Gu <[email protected]> wrote:
> > try <div id="toggle_appear" style="display:none;"> yada yada yada </div>
>
> Thanks, Yong!
>
> One other question: is it possible to have multiple divs toggling on/
> off at the same time? I tried changing "id" to "class", and then it
> simply wouldn't toggle.
>
> Many TIA again,
> Craig
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en.