jQuery datepicker adding custom button

后端 未结 2 501
不思量自难忘°
不思量自难忘° 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);
    });
    
    0 讨论(0)
  • 2020-12-10 21:19

    A related question "How do you add buttons to a jQuery datepicker in the button panel?" was answered in another post. For an example of how a "Prev Day" and "Next Day" button was added to the button panel, see How do you add buttons to a jQuery datepicker in the button panel?

    0 讨论(0)
提交回复
热议问题