Why would when using this code in one place set the default as it should but not when moving first two statements into Master file and the last one into View file (ASP.NET MVC app)?
$(function () {
$(".editDate").datepicker({ dateFormat: 'dd.mm.yy' });
$(".editDate").datepicker($.datepicker.regional['sl']);
$("#IssueDate").datepicker('setDate', new Date()); // if I separate this one into it own file, it never sets the default date
});
??