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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -