How can you set some default options in datepicker() instead of setting the options each time the picker is initialized ?
$(".selector").datepicker({ dateFormat: 'yy-mm-dd' });
use the .setDefaults()
$.datepicker.setDefaults( settings )
afterwards go just
$(".selector").datepicker();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With