이미지에서 알 수 있듯이 2017 년 12 월 (블랙 박스)을 사용 중지하려고합니다. 어떻게해야합니까?캘린더에서 월간 클릭을 해제하는 방법
일정에 대한 나의 자바 스크립트 함수.
$('#datepicker').datepicker({
changeYear: true,
multidate: true,
maxViewMode: 0,
startDate: today,
})
이미지에서 알 수 있듯이 2017 년 12 월 (블랙 박스)을 사용 중지하려고합니다. 어떻게해야합니까?캘린더에서 월간 클릭을 해제하는 방법
일정에 대한 나의 자바 스크립트 함수.
$('#datepicker').datepicker({
changeYear: true,
multidate: true,
maxViewMode: 0,
startDate: today,
})
어쩌면 당신은 다음과 같은 changeMonth
옵션을 사용할 수 있습니다
$('#datepicker').datepicker({
changeYear: true,
changeMonth: false,
multidate: true,
maxViewMode: 0,
startDate: new Date(),
});
$('#datepicker2').datepicker({
changeYear: true,
changeMonth: true,
multidate: true,
maxViewMode: 0,
startDate: new Date(),
});
input {
width: 25%;
margin: 1%;
}
<link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<input type="text" id="datepicker" placeholder="You can't change my month !" />
<input type="text" id="datepicker2" placeholder="You can change my month !" />
작동하지 않습니다. !! 해당 클릭 가능 – Javed
@ dashinglove143 내 편집 참조. –
이 된 답변을 참조하십시오. https://stackoverflow.com/questions/9742289/jquery-ui-date-picker-disabling-specific-dates –