Datepicker - number of years in drop down limited to 15

web
mobile

Topic: Datepicker - number of years in drop down limited to 15

BRADLEY pro asked a year ago

It appears that only 15 years are made available in the year dropdown of the datepicker? This makes it very impractical to use for date of birth fields as an example. Or am I missing something?

Euan pro answered a year ago

I had the same issue and this is how I was told how to fix it: When initialising the datepicker you can do this and change the 25 years to anything you want:
// Data Picker Initialization
$('.datepicker').pickadate({ selectYears: 25 });

Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.5.10
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags