Hi, I was hoping someone might be able to help with this one. I''ve got a select list that I probably need to use an observer on. I want the list, whenever something is selected, to show a hidden div based on what''s chosen. Basically people choose between cash, credit, or check, and then when they pick it will show a different div asking for more information. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Oh, and I know I can probably just use any Javascript to do this, but I really don''t like javascript cluttering my code if there''s a way I can write it in Ruby''s prototype/scriptaculous. On Jun 8, 12:46 pm, kopf1988 <kopf1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, I was hoping someone might be able to help with this one. I''ve got > a select list that I probably need to use an observer on. I want the > list, whenever something is selected, to show a hidden div based on > what''s chosen. Basically people choose between cash, credit, or check, > and then when they pick it will show a different div asking for more > information. Any ideas?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jun 8, 6:46 pm, kopf1988 <kopf1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, I was hoping someone might be able to help with this one. I''ve got > a select list that I probably need to use an observer on. I want the > list, whenever something is selected, to show a hidden div based on > what''s chosen. Basically people choose between cash, credit, or check, > and then when they pick it will show a different div asking for more > information. Any ideas?observe_field or set the select''s onChange to a remote_function ? Fred --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---