pb with altFormat on datepicker

pb with altFormat on datepicker


i have a problem with datepicker
when i use this code
$('input').live("mouseover", function() {
//alert ('yo');
//tous les input avec la classe deviennet des calendar
if ($(this).hasClass('datepicker')) {
$(this).datepicker({
showOn: 'button',
buttonImage: 'images/calendar.gif',
buttonImageOnly: true,
numberOfMonths: 2,
showButtonPanel: true,
altFormat: 'yy-mm-dd'
});
$(this).datepicker('option', 'altFormat', 'yy-
mm-dd');
alert ($(this).datepicker('option',
'altFormat'));
}
});
the alert return yy-mm-dd correctly but my input value looks like
02/28/2010 (for 28th febuary)
is that normal ? I dont think :'-(
please help
I must use $('input').live("mouseover", function() {
because the input is created with javascript ... and not when the page
is loaded.
thanks
--