Kelvin Luck datepicker的问题[选择过去的日期]

时间:2011-07-11 16:11:40

标签: php cakephp datepicker

在我的项目中我正在使用这个日期选择器,我在这里阅读了如何将它放入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 我无法理解如何选择过去的日期。

1 个答案:

答案 0 :(得分:1)

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

this.startDate = null;

到:

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

编辑:

this.setStartDate(s.startDate);

到:

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