jQuery ui datepicker conflict with bootstrap datepicker

前端 未结 8 2229
梦如初夏
梦如初夏 2020-12-01 18:26

I want to show two months using bootstrap datepicker. After search on google I am not able to find how to show multiple months using bootstrap datepicker. I found that I can

8条回答
  •  爱一瞬间的悲伤
    2020-12-01 19:11

    Just put this line after calling Bootstrap datepicker

    var _datepicker = jQuery.fn.datepicker;
    

    And after calling jQuery-ui JS

    jQuery.fn.datepicker = _datepicker;
    

    So, your call will looks like

    
    var _datepicker = jQuery.fn.datepicker;
    
    jQuery.fn.datepicker = _datepicker;
    

提交回复
热议问题