I am using the Rails date_select helper.
:start_year => Time.now.year
:end_year => 1910
I would like the year the user sees when they click to be 1980 which is not the start year or end year.
Is there a way to do this with jquery?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can pass the Date object to the
:defaultoption.In your case it’s
date_select(:start_year => Time.now.year, :end_year => 1910, :default => Date.new(1980) )Docs for the date_select helper