Detect change to selected date with bootstrap-datepicker

前端 未结 7 1511
一整个雨季
一整个雨季 2020-12-01 09:06

I have an input element with an attached datepicker created using bootstrap-datepicker.

相关标签:
7条回答
  • 2020-12-01 09:34

    You can use onSelect event

     $("#date-daily").datepicker({
      onSelect: function(dateText) {
       alert($('#dp3').val());
      }
    });
    

    It is Called when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters. this refers to the associated input field.

    SEE HERE

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