javascript - jQuery datepicker set format -
how set format dd, d mm, yy
i have try , not working...
$( "#datepicker" ).datepicker(); $( "#datepicker2" ).datepicker(); $( "#datepicker" ).datepicker("option", "showanim", "slidedown", "dateformat", "dd, d mm, yy" ); $( "#datepicker2" ).datepicker("option", "showanim", "slidedown", "dateformat", "dd, d mm, yy" );
you need set options individually if you're doing after initialisation:
$("#datepicker") .datepicker("option", "showanim", "slidedown") .datepicker('option', "dateformat", "dd, d mm, yy"); alternatively, can set options on initialisation in 1 go:
$("#datepicker").datepicker({ showanim: 'slidedown', dateformat: 'dd, d mm, yy' });
Comments
Post a Comment