The jQuery DatePicker (Calendar) plugin has a property yearRange which can be used to set the different Year ranges for the Year DropDown. Download View Demo Download Free Files API In this article I will explain with an example, how to set Year Range in Year DropDown of jQuery DatePicker (Calendar) plugin.
Description: This script displays the current date inside a form via 3 prefilled drop down menus (day, month, year). The visitor can then specify a different date if he/she wants. You can have multiple drop down dates within the same form as well. Example: Notice how today's date is selected by default.
How to use it: 1. Create a select or input element for the year selector. Dynamically populating Year in DropDownList (SELECT) using jQuery Inside the jQuery document ready event handler, first the DropDownList i.e. HTML SELECT element is referenced and then the Current Year is determined using JavaScript Date object. Use any element to open the dropdown menu, e.g. a