I have a select Menu with a few options
<p>
<%= f.label :reason %><br />
<%= f.select :reason, Confirmation.reasons.collect {|p| [ p[:name], p[:id] ] }, { :include_blank => true } %>
</p>
The last being id "5" and name = "Other"
If and only if they choose other I want a hidden text_area with a div id = "other" to be shown to allow the user to type...
How can I do this simply?
<%= link_to_function "Show me other" do |page|
page[:other].toggle
end %>
I can toggle it but I want to show it on the selection of the "Other" in the select box? Is this a job for observe_field?