首页 > 解决方案 > tempusdominus clear minDate/maxDate

问题描述

I am using tempusdominos jquery plugin and i am trying to use the minDate and maxDate feature to link 2 time pickers. I can set these values, but it seems impossible to clear these values. I tried :

 $('#datetimepicker6').datetimepicker({
    minDate: false
  });

and

$('#datetimepicker6').datetimepicker({
        minDate: null
      });

sample

标签: tempus-dominus-datetimepicker

解决方案


I think you need to do it like this:

$('#datetimepicker6').datetimepicker('minDate', null);

推荐阅读