trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Clear button #767

Open Helen1987 opened 9 years ago

Helen1987 commented 9 years ago

I want to have a 'Clear' button for timepicker (''00:00" isn't good for me). I added button and I can just set input.val(null), but I am working with knockout framework and underlying knockout data is not updated accordingly. So, I need a way to do smth like this $(input).datepicker('setTime', null); I want to change value in timepicker itself. Do you have any suggestions?

aensley commented 8 years ago

+1

There needs to be a way to clear the field after a value has been placed there.