views:

12

answers:

0

I have an inline datepicker with changeMonth: true, changeYear: true. Because of the way I'm using the datepicker I have an 'Apply' button that calls datepicker('getDate'). If, for example, the user selects Jan 15 2010 and then changes the month from Jan to Feb, the control appears to have have Feb 15 2010 selected but datepicker('getDate') still gets Jan 1 2010. The user has to click on a day to make it change, even if it's the day that already appears to be selected. I kind of know how I could go about fixing this using the onChangeMonthYear event, but it seems like it'll be a lot of hacky code I really don't want to have around. Has anyone run into this before and have a small, clever way of fixing the issue?