2025-04-03 13:57:19 +09:00
|
|
|
<link href="~/css/jquery-ui-1.12.1/jquery-ui.min.css" rel="stylesheet" />
|
|
|
|
|
<script src="~/js/jquery-ui.min.js"></script>
|
2020-10-12 14:39:23 +09:00
|
|
|
<script>
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
$('.datepicker-input').datepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
language: "ko",
|
|
|
|
|
autoclose: true,
|
|
|
|
|
});
|
|
|
|
|
$(".datepicker-input").each(function () { $(this).datepicker(); });
|
|
|
|
|
$(".datepicker-input").on("changeDate", function () {
|
|
|
|
|
$(this).datepicker('hide');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
$.datepicker.setDefaults({
|
|
|
|
|
dateFormat: 'yy-mm-dd',
|
|
|
|
|
prevText: '이전 달',
|
|
|
|
|
nextText: '다음 달',
|
|
|
|
|
monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
|
|
|
|
monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
|
|
|
|
dayNames: ['일', '월', '화', '수', '목', '금', '토'],
|
|
|
|
|
dayNamesShort: ['일', '월', '화', '수', '목', '금', '토'],
|
|
|
|
|
dayNamesMin: ['일', '월', '화', '수', '목', '금', '토'],
|
|
|
|
|
showMonthAfterYear: true,
|
|
|
|
|
yearSuffix: '년'
|
|
|
|
|
});
|
|
|
|
|
</script>
|