Clear the value of bootstrap-datepicker

前端 未结 10 1860
甜味超标
甜味超标 2020-12-28 12:56

I am using bootstrap-datepicker from here: https://github.com/eternicode/bootstrap-datepicker

version: 2.3.2

I am having trouble to clear the date values of

10条回答
  •  情话喂你
    2020-12-28 13:33

    I found the best anwser, it work for me. Clear the value of bootstrap-datepicker:

    $('#datepicker').datepicker('setDate', null);
    

    Add value for boostrap-datepicker:

    $('#datepicker').datepicker('setDate', datePicker);
    

提交回复
热议问题