Why arrows in jQuery UI Datepicker make wrong change of the date? -



Why arrows in jQuery UI Datepicker make wrong change of the date? -

i having standard jquery ui datepicker this:

$('.text_input').live('focus', function () { $(this).datepicker('destroy').datepicker({dateformat: 'dd.mm.yy'}); });

in input date, e.g. 14.7.2010. when click input, datepicker appears , shows selected date filled in input. however, when seek navigate using left , right arrows @ top of datepicker, unusual thing happens - changes date in datepicker nov 1899 or jan 1900, depending arrow click.

anybody has thought why happening ? , how prepare ? using jquery ui 1.8.14 , jquery 1.4.2.

don't destroy it. :)

$('.text_input').live('focus', function() { $(this).datepicker({ dateformat: 'dd.mm.yy' }); });

jquery jquery-ui datepicker

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -