mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Datepicker: Fix populate alternate field demo
This commit is contained in:
parent
ab2cb90240
commit
6324828ba0
@ -18,8 +18,8 @@
|
||||
$(function() {
|
||||
$( "#datepicker" ).datepicker({
|
||||
select: function( event, ui ) {
|
||||
var date = Globalize.parseDate( ui.date );
|
||||
$( "#alternate" ).val( Globalize.format( date, "dddd, d MMMM, yyyy" ) );
|
||||
var date = Globalize.parseDate( ui.date, { date: "short" } );
|
||||
$( "#alternate" ).val( Globalize.format( date, { date: "long" } ) );
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user