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

How to Close Interface after select a Date ? #932

Open exzant opened 6 years ago

exzant commented 6 years ago

I want to close interface after select a date, using onSelect for a while I use this

$('#datetime').datetimepicker({
    onSelect: function (datepickerInstance){
        $('#ui-datepicker-div').hide();
}});
JohnArcher commented 6 years ago

Use $(this).datetimepicker("hide"); instead of $('#ui-datepicker-div').hide();