Вопрос

It is cool http://tarruda.github.io/bootstrap-datetimepicker/ I am using...

I do like

$('#ExpectedEndingTimeDataPicker').mouseover(function () {
     $("#ExpectedEndingTimeDataPicker").datepicker();
});

But no joy... it is showing when click the input tag only...

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">
Это было полезно?

Решение

According to the documentation (github link), use

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

inside your mouseover handler.

Другие советы

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top