Ok, I'm using the jQuery UI datepicker as a replacement for the terrible AjaxToolkit datepicker, but I've run into an issue.
For some reason, the datepicker's prev/next buttons no longer exhibit the correct behaviour, and instead move from this month (selected as default) to december 1899 for previous and january 1900 for next.
Can anyone suggest why this is happening?
Binding code as follows:
$('.jQueryCalendarComponent').live('click', function() {
$(this).removeClass('hasDatepicker').datepicker({
showOn: 'both',
showAnim: '',
dateFormat: 'dd/mm/yy',
buttonImage: 'images/calendar.gif',
buttonImageOnly: true
}).focus();
}).datepicker({
showOn: 'both',
showAnim: '',
dateFormat: 'dd/mm/yy',
"buttonImage: 'images/calendar.gif',
buttonImageOnly: true
});
Live('click') is used in a similar manner to live would be used to attach an event, and .jQueryCalendarComponent is a textbox.