0

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();
                     });
                 }
Nurjan
  • 5,889
  • 5
  • 34
  • 54
jenny
  • 277
  • 7
  • 18

0 Answers0