Sameera Withanage
2006-Sep-12 05:19 UTC
How to use a text box instead a lis for year in date_select
Hi, I have a date_select in my application and is used to select birth date of authers. So it is quite long list of years in drop down list and seems not practical. I want to have month and date drop downs as it is and to use a text box to enter only the year. Is it possible with date_select? Thank you. Sameera -- 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 -~----------~----~----~----~------~----~------~--~---
Dominique Plante
2006-Sep-12 22:06 UTC
Re: How to use a text box instead a lis for year in date_sel
Dear Sameera: I have written a little sample application that shows a possible solution to your problem. Please email me if you want it - I will also describe the solution here in another email (after doing a little bit more code cleanup, tweaks), etc. Thanks! Dominique "%s@%s.%s" % ["dominique.plante", "gmail", "com"] Sameera Withanage wrote:> Hi, > > I have a date_select in my application and is used to select birth date > of authers. So it is quite long list of years in drop down list and > seems not practical. I want to have month and date drop downs as it is > and to use a text box to enter only the year. Is it possible with > date_select? > > Thank you. > > Sameera-- 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 -~----------~----~----~----~------~----~------~--~---