【问题标题】:How to enable passed days in bootstrap calendar?如何在引导日历中启用过去的天数?
【发布时间】:2017-10-03 21:50:05
【问题描述】:

我正在使用引导日历。过去的日子已经禁用它。我想启用过去的日子。我该怎么做。

这是我的 html 日历.....

<input type="text" name="date_from" id="q-checkin" class="input-text full-width dates" placeholder="mm/dd/yy" />  

【问题讨论】:

  • JS 部分在哪里?
  • 提供MCVE,难懂你在期待什么

标签: javascript jquery html twitter-bootstrap


【解决方案1】:

尝试使用startDate

$('#q-checkin').datepicker({
   startDate: '-3y', //start date will enable passed days of previous three years
   format: 'dd-mm-yyyy'
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-05
    • 2018-05-19
    • 1970-01-01
    • 1970-01-01
    • 2010-09-17
    • 1970-01-01
    • 2017-08-02
    • 1970-01-01
    相关资源
    最近更新 更多