Bill Walton wrote: > On Mon, Jun 7, 2010 at 4:22 PM, Marnen Laibow-Koser > <li...@ruby-forum.com> wrote: >> Build all the forms in advance, inside hidden divs. �Then show one div >> or another based on dropdown selection. �Very simple, and will work >> better for users without JS. > > I'm missing something, I'm sure. How would the hidden divs get > toggled if the user doesn't have javascript?
Bill, I hear what you're saying. You'll need some JS to hide show the DIV. Unless you use RJS. I know if you're using link_to_function, you can use page[div].hide or page[div].show. However, for a select box, your only option is to use observe_field I believe. The :function parameter allows you to input JS code only I believe. Don't believe RJS is accepted. -- Posted via http://www.ruby-forum.com/. -- 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-t...@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.