When you select the last date on the demo page (December 2018) and
then click the 'next' button, it jumps to January of the first year
(January 1998). This may be unexpected behaviour for some, especially
since when you click on one of the days (say 1st January) it returns
2019 instead of 1998 as the year.

If you select January 1998 and click 'Back', the dropdowns state
December 1998, but the year is actually 1997 (so you get December 31
1997).

Shouldn't yearRange set minDate and maxDate to prevent this happening
- or at least add the years to the dropdowns if you reach the limits
(which could be useful in some circumstances)?

What I do is:

$("#foo").datepicker({yearRange: "-55:0"});

And as a workaround I tried:

$("#foo").datepicker({minDate: "-55y", maxDate: "0y"});

But it doesn't show anything older than 10 years ago.

Demo page tested on:
http://ui.jquery.com/repository/latest/demos/functional/#ui.datepicker



-- Sam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to