in my page there is two drop down in which one should be year and month and another should be corresponding year and month date should be shown..for eg if i clicked may2007 ,in the next drop down it should list 31 days if i select feb 2007 it should show list of 28 days.is any one knows solution for this?please reply... -- 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 -~----------~----~----~----~------~----~------~--~---
try to use an onClick event with JS and render what you need through rjs to the second element. On 25 Mai, 10:47, Shiva Kumaran <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> in my page there is two drop down in which one should be year and month > and another should be corresponding year and month date should be > shown..for eg if i clicked may2007 ,in the next drop down it should list > 31 days if i select feb 2007 it should show list of 28 days.is any one > knows solution for this?please reply... > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
You can use observe_field helper: http://railsmanual.com/module/ActionView%3A%3AHelpers%3A%3APrototypeHelper/observe_field On May 25, 8:40 am, lanzm <marcel.l...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> try to use an onClick event with JS and render what you need through > rjs to the second element. > > On 25 Mai, 10:47, Shiva Kumaran <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > in my page there is two drop down in which one should be year and month > > and another should be corresponding year and month date should be > > shown..for eg if i clicked may2007 ,in the next drop down it should list > > 31 days if i select feb 2007 it should show list of 28 days.is any one > > knows solution for this?please reply... > > > -- > > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---