I am currently using jqueryUI datetimepicker
. I would like to get the datetimepicker
close automatically once both the date and time is selected. I tried with the following on onSelect
function. But not sure if it is the best way to solve this problem.
onSelect : function() {
var minuteslider = $('.ui_tpicker_minute_slider');
if(minuteslider) {
minuteslider.change(function() {
$("#ui-datepicker-div").hide();
});
}