Код: Выделить всё
$(document).ready(function() {
let now = new Date();
let today = now.getDate() + '/' + (now.getMonth() + 1) + '/' + now.getFullYear();
console.log(today);
$('#datePicker').val(today);
});< /code>
Однако он не работает.
Попробуйте фрагмент кода в Chrome.>
Подробнее здесь: https://stackoverflow.com/questions/123 ... -type-date
Мобильная версия