I use datepicker, which is always displayed on the page and attached to a hidden <input> . Depending on the user interactions on the page, some dates may be dynamically disabled (via beforeShowDay ).
The problem is that this allows you to disable the date that was previously selected:

To avoid this, I would like to deselect the current date before updating the datepicker.
Is it possible?
source share