Ming Ma
2006-Aug-06 09:47 UTC
[Rails] Newbie: populate 2nd dropdown list based on user''s selection in 1st dropdown list
Hi, I am creating a form that a user can post a message based on his selection on category and subcategory. (A category has many subcategories.) How do I dynamically populate subcategory dropdown list when user chooses a category from category dropdown list? Thanks in advance. -- Best regards, Ming Ma
Daniel N
2006-Aug-06 13:25 UTC
[Rails] Newbie: populate 2nd dropdown list based on user''s selection in 1st dropdown list
On 8/6/06, Ming Ma <mingworld@gmail.com> wrote:> > Hi, > > I am creating a form that a user can post a message based on his > selection on category and subcategory. (A category has many > subcategories.) > > How do I dynamically populate subcategory dropdown list when user > chooses a category from category dropdown list? > > Thanks in advance. > > -- > Best regards, > > Ming Ma > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >There''s a couple of solutions to this on http://rails.techno-weenie.net the one by technoweenie is the best but I couldn''t seem to find it at the moment. The other is by liquid here http://rails.techno-weenie.net/tip/2006/6/20/cascading_select_boxes_with_rjs_even_on_ie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060806/f871f9d1/attachment.html