Bootstrap Datepicker - 显示2个月而不是1个月的范围

时间:2017-03-03 06:44:48

标签: twitter-bootstrap bootstrap-datepicker bootstrap-datetimepicker

我正在使用https://bootstrap-datepicker.readthedocs.io/en/latest/index.html

当我使用下面的代码..我只能查看1个月的日历..是否有可能显示2个月?

HTML:

<div class="input-daterange input-group" id="datepicker">
  <input class="form-control input-lg" id="returnTripDepart" name="start" readonly="true">
  <input class="form-control input-lg" id="returnTripReturn" name="end" readonly="true">
</div>

JS:

$('.input-daterange').datepicker({
    "startDate": today,
    "endDate": maxLimitDate,
    "todayHighlight": true,
    "format": "dd M yyyy",
    "autoclose": true,
    "orientation": "bottom"
});

0 个答案:

没有答案