I have the following code that disables the current date by setting minDate to the current date + 1:
var today = new Date();
var tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
$("#minDate").datepicker({
showOn: "none",
minDate: tomorrow,
dateFormat: "DD dd-mm-yy",
onSelect: function(dateText) {
minDateChange;
},
inputOffsetX: 5,
});

The problem is that I want to turn off the current date, but still keep it selected (blue frame around the date) in the calendar.
Is there any own way to do this using datepicker or do I need to create a selection script myself?
source
share