http://www.prototypejs.org/api/element/toggle
$('your-sub-form').toggle() will hide or show a given element. Just wrap your subform in a div with a unique id and put a disclose link outside that div. You can then use an onclick handler for that disclose link if you like the inline JS route or by defining the behavior of the element in the document.observe(''dom:loaded", ...) function. hth On Jul 11, 2009, at 7:14 PM, JannaB wrote: > > Im ok with the controller / model architecture....it;s the UI itself > that I am trying to accomplish. Simply, a means to collapse forms on > the screen is reallyt what I want. Thanks! Janna > > --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---