Problem with Kelvin Luck datepicker [Select Past Dates]
in my project I'm using this datepicker, I read how to put it into Cakephp here: http://bakery.cakephp.org/articles/agusti/2010/02/02/transparent-datepicker-with-jquery
When I change format to ymd (Ex: 2011-12-10), I can´t select past dates l开发者_StackOverflow中文版ike in the example. http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerPastDate.html I can't understand how to make past dates selectable.
I found the answer, just need to edit this line:
this.startDate = null;
to:
this.startDate = '2000-01-01';
And edit this:
this.setStartDate(s.startDate);
to:
this.setStartDate('2000-01-01');
精彩评论