How can i set Year range for a jQuery Date Picker: 1900 to current year, or 1900 to 9999

后端 未结 6 2117
囚心锁ツ
囚心锁ツ 2021-02-05 10:59

Hi all i used the Jquery Date picker which works well enough for me. But i am having a small issue i.e i would like to set the Start year from 19

6条回答
  •  感动是毒
    2021-02-05 11:53

    You can use the following.

     $("#datepicker").datepicker({
         changeMonth: true, // this will help you to change month as you like
         changeYear: true, // this will help you to change years as you like
         yearRange: "1900:9999"
     });
    

提交回复
热议问题