An array or function that will be used to determine which dates to be disabled for selection by the widget.
Examples
Array
<input id="datepicker" width="312" />
<script>
$('#datepicker').datepicker({
value: '11/10/2022',
disableDates: [new Date(2022,10,11), '11/12/2022']
});
</script>
Function
<input id="datepicker" width="312" />
<script>
$('#datepicker').datepicker({
value: '11/11/2022',
disableDates: function (date) {
var disabled = [10,15,20,25];
if (disabled.indexOf(date.getDate()) == -1 ) {
return true;
} else {
return false;
}
}
});
</script>