Topic: Cascading Menu
Hey guys - Thanks for looking.
I currently have a working select menu:
<% form_tag do %>
<%= select (:project, :status, @status_options) %>
<% end %>
Where status_options is an array of arrays in the form of [[Option 1, option_1],[Option 2, option_2]etc]. This allows me to submit the "humanized" value through a "railsified" variable.
What I'm trying to do now is show and hide certain DIVs according to what's been selected. When Option 1 is selected, I want Option 2 and Option 3 DIVs to be hidden, and Option 1 to appear. This is serving a mother-child select menu requirement.
I currently have the DIVs set to style = "display: none", which I would like to toggle according to what's been selected. I've seen a few javascript solutions, but I haven't found a sample that works with ruby. Any help would be greatly appreciated - thanks again for looking
.