jQuery Datepicker “After Update” Event or equivalent

前端 未结 4 1532
我在风中等你
我在风中等你 2020-12-01 19:24

I am using a standard jQuery Datepicker and I need to modify the text in each TD based on some daily status information. I realize I can wire up the \"beforeShowDay\" event

4条回答
  •  日久生厌
    2020-12-01 19:50

    You can do this:

    $('.selector').datepicker({
       beforeShowDay: function(date) { 
           /*some function to do before display*/ 
       },
       onChangeMonthYear: function(year, month, inst) { 
           /*some function to do on month or year change*/ 
       }
    });
    

    See DOCs

提交回复
热议问题