28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
|
|
|
|||
|
|
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
|
|||
|
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
|||
|
|
<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>
|