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 change this to <%Html.ActionLink%> in my asp.net mvc application ?