Using jQuery Date picker with a custom trigger button

后端 未结 6 1611
伪装坚强ぢ
伪装坚强ぢ 2021-02-20 08:37

How do I make the jQuery Datepicker open up by a user defined button?

6条回答
  •  一整个雨季
    2021-02-20 09:28

    I have solved using focus.

    $("#datepicker").datepicker();
    
    $("#myButton").click(function() {
     $("#datepicker").focus();
    });
    

提交回复
热议问题