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

BRADLEY pro asked 5 years 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 5 years 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.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No