Any thoughts on this? Any help folks can provide would be greatly
appreciated!
On Jan 27, 10:40 am, Mike Dershowitz <rails-mailing-l...@andreas-
s.net> wrote:> Hi:
>
> I have the following view code:
>
> <%= f.collection_select :goaltype_id, Goaltype.find(:all), :id, :name,
> {},
> { :onchange => "new Effect.SlideDown(''onetime'');
return false;", :style
> => "width:200px", :multiple => true } %>
> <div id="onetime" style="display: none">
> <%= render(:partial => "g_onetime" ) %>
> </div>
>
> What I''d like to do is to capture the value that the user selected
and
> then use it to determine which div to display. Right now this works
> just fine in displaying only the one div "onetime", but I need it
to be
> more robust and determine which div to select based on what value the
> user chooses in the drop-down.
>
> Do I need a listener or something?
>
> Thanks in advance!
>
> Mike
>
> --
> Posted viahttp://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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---