Hi, I am trying to set up a drop down menu. When the item on the drop down list has been changed, I would like to display a textbox. Is there anyway to execute RJS during in onclick or onchange event of the select_tag? -- 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-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 -~----------~----~----~----~------~----~------~--~---
Zack Chandler
2007-Apr-21 01:42 UTC
Re: How to update element on view during onclick with RJS?
> I am trying to set up a drop down menu. When the item on the drop down > list has been changed, I would like to display a textbox. Is there > anyway to execute RJS during in onclick or onchange event of the > select_tag? >Wai, Check out the observe_field prototype helper: http://caboo.se/doc/classes/ActionView/Helpers/PrototypeHelper.html#M005064 That should be the ticket. Hope this helps, -- Zack Chandler http://depixelate.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 -~----------~----~----~----~------~----~------~--~---