Is there any way to handle the event of pressing the "done" button in jquery UI DatePicker?
I have a datepicker that allows only to choose between year and month as in here
The problem is that using the onclose event prevents me from clearing the field (if I click the datepicker pops up then if I close the current selected month and year are put into the field).
I would like not to use an additional "clear" button outside the datepicker, so I though I could use the Done button.