ericjgagnon / wickedpicker

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

Manually setting the time on the picker #67

Closed markandrewkato closed 6 years ago

markandrewkato commented 6 years ago

Hi, I tried setting the time using $('.timepicker').val('10:00 AM'). This works but once I click the input field, the time changes. Is there a proper way to set the time on the picker?

Note: I've also tried adding spaces like so $('.timepicker').val('10 : 00 AM'), still changes when input field is clicked.

Thanks, Mark

jaimestuardo commented 6 years ago

Please try my solution in https://github.com/ericjgagnon/wickedpicker/issues/74

markandrewkato commented 6 years ago

Hi @jaimestuardo!

I've already solved this problem. I did update the source code to add some features.

Thank you very much for your help. There might be some other people who can use your solution.

Have a great day ahead!