I don't want the "today" highlighting displayed on my JQuery UI datepicker. The gotoCurrent option is meant to make the highlighting move to the selected date. This would be fine. However setting gotoCurrent to true has no effect. What am I doing wrong?
the gotoCurrent controls the behavior of 'Today' button in the ButtonPanel.
select a date != today's date, click this button:
if gotoCurrent = false -> today's date is shown
if gotoCurrent = true -> selected date is shown
to disable Today's highlighting: in the file ui.datepicker.js:
search for :
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
and delete the highlight class (or delete the whole line) :
(printDate.getTime() == today.getTime() ? '' : '') +
you should get what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With