I want fill five years in a drop-down using javascript and the years will be after the current year.
for example:
if current year is 2012 then the drop-down values are 2012,2013,2014,2015,2016
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.
HTML
JavaScript
A little bit better JavaScript function:
jsFiddle, new jsFiddle