Jump to content


Change year range in datepicker

datepicker

  • Please log in to reply
1 reply to this topic

#1 nunenthal

nunenthal

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts
  • LocationFrance

Posted 20 February 2020 - 11:45 AM

Hello,

 

How to change the year range for the datepicker, by default it's 10year back and forward.

 

A simply question, I hope a simply response !

 

 

Thank you for your help.

 

 



#2 nunenthal

nunenthal

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts
  • LocationFrance

Posted 20 February 2020 - 10:01 PM

need to change 
 
yearRange: "-100:10", // Range of years to display in drop-down,
 
in jquery-ui.js
 
 
 
But don't work in firefox, display flicking problem. Don't work in safari, display just +10 -10
 
work only in chrome !






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users