John Smith
2008-Jan-03 18:05 UTC
How to create a select list box and be able to write in it
I''m trying to create some kind of select box, with multiple names. I would like to have a sidebar but also be able to write the first later of those names. For example, if I am writing "Col" then the name Colsa, witch is in the list, appears. Is it possible? -- 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 -~----------~----~----~----~------~----~------~--~---
sishen
2008-Jan-03 18:14 UTC
Re: How to create a select list box and be able to write in it
You can use an observe_field to observe the sidebar and then change the value in the select box using rjs. On Jan 4, 2008 2:05 AM, John Smith <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I''m trying to create some kind of select box, with multiple names. I > would like to have a sidebar but also be able to write the first later > of those names. For example, if I am writing "Col" then the name Colsa, > witch is in the list, appears. > > Is it possible? > -- > 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 -~----------~----~----~----~------~----~------~--~---