Martijn
Martijn

Reputation: 5673

JQueryUI Datepicker: Hide "Today" button, but show "Done" button?

The field I'm using the datepicker for is a date of birth, so the "today" button is obsolete. However, I'd like to give users the chance to hide the datepicker and type the date themselves. Is this possible?

Upvotes: 4

Views: 7430

Answers (2)

Alexander Palamarchuk
Alexander Palamarchuk

Reputation: 879

Put this in CSS:

#ui-datepicker-div button.ui-datepicker-current {display: none;}

Upvotes: 10

Martijn
Martijn

Reputation: 5673

Seems like I found an almost-solution. If the dateRange is set such that "today" is not part of it, the "today" button is disabled (albeit not hidden).

Upvotes: 0

Related Questions