Demo
Dynamically populate Year in DropDownList (SELECT) using JavaScript