【问题标题】:Problem with Kelvin Luck datepicker [Select Past Dates]Kelvin Luck datepicker [选择过去日期] 的问题
【发布时间】:2011-07-11 16:11:39
【问题描述】:

在我的项目中,我正在使用这个日期选择器,我在这里阅读了如何将其放入 Cakephp:http://bakery.cakephp.org/articles/agusti/2010/02/02/transparent-datepicker-with-jquery

当我将格式更改为 ymd(例如:2011-12-10)时,我无法像示例中那样选择过去的日期。 http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerPastDate.html 我不明白如何选择过去的日期。

【问题讨论】:

    标签: php cakephp datepicker


    【解决方案1】:

    我找到了答案,只需要编辑这一行:

    this.startDate = null;
    

    到:

    this.startDate = '2000-01-01';
    

    并编辑:

    this.setStartDate(s.startDate);
    

    到:

    this.setStartDate('2000-01-01');
    

    【讨论】:

      猜你喜欢
      • 2021-09-10
      • 2011-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-11
      相关资源
      最近更新 更多