ericjgagnon / wickedpicker

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

Open wickedpicker with a button #76

Open alexmendi opened 5 years ago

alexmendi commented 5 years ago

Hi

Is there any way to activate the wickedpicker by a button?

jsanmarb commented 4 years ago

Maybe the button on click event can execute this:

document.getElementById("_input_wickedpicker").click();

where input is like this:

<input
    id="_input_wickedpicker"
    type="text"
    name="timepicker"
    class="timepicker"
    placeholder= "hh:mm"
    readonly />

It worked for me.