jQuery-UI datepicker default date

后端 未结 7 1394
盖世英雄少女心
盖世英雄少女心 2020-11-29 03:34

I have a problem with the jQuery-UI datepicker, I have searched and searched but I didn\'t find the answer. I have the following code:



        
7条回答
  •  北海茫月
    2020-11-29 04:24

    You can try with the code that is below.

    It will make the default date become the date you are looking for.

    $('#birthdate').datepicker("setDate", new Date(1985,01,01) );
    

提交回复
热议问题