簡體   English   中英

如何在鼠標懸停時顯示jQuery bootstrap-datetimepicker

[英]How to show the jQuery bootstrap-datetimepicker on mouse over

這很酷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鏈接 ),使用

$('#ExpectedEndingTimeDataPicker').data("DateTimePicker").show();

在您的鼠標懸停處理程序中。

 $('#ExpectedEndingTimeDataPicker').mouseover(function () { $(this).data('daterangepicker').show(); }); 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM