How to set default options in datepicker() ?

How to set default options in datepicker() ?




$(".selector").datepicker({ dateFormat: 'yy-mm-dd' });

$.datepicker.setDefaults( settings )

$(".selector").datepicker();

var defaultFormat = {dateFormat: 'yy-mm-dd'};
$.datepicker.setDefaults(defaultFormat);

Comments

Popular posts from this blog

How to build unlimited levels menu through PHP and MySQL

How to build a map of the frequency with which characters occur in a file in OCaml?

How to create timed pop-up windows using MVVM?