Ahmed Abdelsalam
2010-Aug-30 11:53 UTC
update form text_field on collection_select selection
I have form and a collection_select control. I would like to update form fields (text box) when I select an item from the collection_select box. It''s like selecting template from the collection_select and the template automatically loads to text boxes. Any help? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 30 August 2010 12:53, Ahmed Abdelsalam <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I have form and a collection_select control. I would like to update > form fields (text box) when I select an item from the collection_select > box. > > It''s like selecting template from the collection_select and the template > automatically loads to text boxes.You will either have to use javascript or ajax for this. If you don''t know about them then start with google. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Possibly Parallel Threads
- (no) new join table entry by collection_select
- f.collection_select: what are the parameters?
- Can i use a hash on a collection_select? If don't, alternatives.
- How to Pass Jquery selected dropdown values and radio button values to controller
- Auto populate text_fields based on selected item from another collection_select