如何在xdsoft datetimepicker中动态更改minDate?

时间:2016-04-28 09:20:34

标签: jquery datetimepicker

我正在使用此DateTimePicker。我尝试了下面的代码,但它没有工作

HTML:

browser.actions().mouseMove(
    foundElement, newLocationX, 
)
.click()
.perform();

JS:

<input type="text" id="txtDt">
<br>
<br>
<input type="text" id="txtDt2">

我在 $('#txtDt').datetimepicker({ format: 'd/m/Y h:i A', formatTime: 'h:i A', validateOnBlur: false, defaultTime: '24:00', onSelectDate: function ($ct, $i) { var sDate = $i.val().substring(0, 10); $('#txtDt2').datetimepicker('setOptions', { minDate: sDate }); } }); $('#txtDt2').datetimepicker({ format: 'd/m/Y h:i A', formatTime: 'h:i A', validateOnBlur: false, defaultTime: '23:59' }); 函数中出现datetimepicker is not a function 错误。怎么解决?

0 个答案:

没有答案