jQuery datepicker adding custom button

后端 未结 2 500
不思量自难忘°
不思量自难忘° 2020-12-10 20:45

I\'m trying to add a custom button to the button panel of jQuery\'s datepicker. When I apply the following code though nothing happens:

 $(\'.date-picker\')         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 21:19

    $(function(){
        var pickerOpts = {
            showOn: "button"
        };  
        $("#date").datepicker(pickerOpts);
    });
    

提交回复
热议问题