很酷http://tarruda.github.io/bootstrap-datetimepicker/我正在使用...
我很喜欢
$('#ExpectedEndingTimeDataPicker').mouseover(function () {
$("#ExpectedEndingTimeDataPicker").datepicker();
});
但是没有什么乐趣...仅在单击 input
标签时才会显示...
HTML
<input class="form-control dataPickerField valid"
data-val="true"
data-val-required="The Expected Ending Time field is required."
id="ExpectedEndingTimeDataPicker"
name="Requsition.ExpectedEndingTimeAsString"
readonly="True" type="text" value="17.01.2014">
最佳答案
根据文档( github link ),使用
$('#ExpectedEndingTimeDataPicker').data("DateTimePicker").show();
在鼠标悬停处理程序内。
关于javascript - 如何在鼠标悬停时显示 jQuery bootstrap-datetimepicker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21192970/