I have a datepicker on 2 fields: Start Date and End Date. After selecting the start date, the end date datepicker updates the min and max date options and also the yearRange option.
If I choose 29/12/2013, the user can only choose 10 days on from here for the end date.
So, I open the datepicker for the End Date which has a yearRange of 2013:2014 and the changeYear option set to true.
But the year dropdown list only display 2013. 2014 is not in the list.
If I click on the right arrow (next) of the datepicker to move to the next year, it moves to 2014 and then if I click on the year dropdown list 2014 is now displayed.
$("#EndDate").datepicker("option", "yearRange", '2013:2014');
If a put an alert in front of this code, then the dropdown for year year show both 2013 and 2014 as expected.
I am using JQuery 1.4.4