Give all of the elements the same class name, then use
document.getElementsByClassName(''name'') and loop through the
result
list, collapsing as you go.
On Dec 18, 6:37 am, Joff <goo...-aWdWNdN+bKvfLQmhiSrcmA@public.gmane.org>
wrote:> I''m working on a page that toggles BlindDown to display a content
> block.
>
> There are x number of these content blocks on the page but I only want
> one to be displayed at a time. Expanding one content block should
> collapse all others.
>
> Can anyone suggest a method for doing this or point me in the right
> direction?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---