ericjgagnon / wickedpicker

A simple jQuery timepicker
http://ericjgagnon.github.io/wickedpicker/
MIT License
93 stars 78 forks source link

Have the timepicker clear by default. #72

Open achasveachas opened 6 years ago

achasveachas commented 6 years ago

I know we can make the timepicker clearable by setting clearable: false.

Is there a way to have it clear by default? I.E. the default value should be clear and clicking on the input will allow you to enter a value?

achasveachas commented 6 years ago

I tried getting around it by doing the following:

let timepicker = $('.timepicker').wickedpicker(options); $('.hasWickedpicker').val("");;

But calling $('.timepicker').wickedpicker('time') still gives me the time value (even though the input is empty).

OrganizacionTestCesarCalvillo97 commented 4 years ago

did you find the solution?

achasveachas commented 4 years ago

Hmmm, this was a long time ago and I don't have access to that code since i left my previous job.

Sorry I can't be more helpful.