Topic: Jquery Date Picker Year Limit

Euan pro asked 5 years ago


Hello, Just wondering if there is any way to display more years in the date picker? As by default it is only 2011-2025. And if I wanted to select 2010, I would have to select 2011 first. Thanks.

Marta Wierzbicka staff answered 5 years ago


Hi, you can do this, instead of this code of initialization in your index.html: // Data Picker Initialization $('.datepicker').pickadate(); paste this one: // Data Picker Initialization $('.datepicker').pickadate({ selectYears: 25 }); of course, you can change 25 to any number you want. Best, Marta

Euan pro commented 5 years ago

Thanks Marta


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags