How to autoclose a datetimepicker on date select only. I am using the dp.change event but it closes the datetimepicker even on changing the time.
$('.datetimepicker').each(function () {
$(this).on('dp.change', function (ev) {
$(this).data('DateTimePicker').hide();
});
});
What will be the className for the timePicker? What if I get the class and tell datetimepicker not to close if the className is equal to the className of timepicker?
And what is the latest version for the datetimepicker?
1 is the this: http://eonasdan.github.io/bootstrap-datetimepicker/
2nd is this with autoClose property.
http://www.malot.fr/bootstrap-datetimepicker/
Thanks.