I am using a JQuery datetime plugin in my application. When I scroll down or up my page and if my mouse pointer comes across date field text boxes then it changes dates because of scrolling. Even if date is not entered in date field then also it scrolls up or down from the current date. How to disable the scrolling on these date fields. You can see this behavior in the official page of this plugin for DatePicker field here: http://xdsoft.net/jqplugins/datetimepicker/
Pass options scrollMonth
and scrollInput
to false.
$('.myDatePicker').datetimepicker({
timepicker : false,
closeOnDateSelect : true,
format : 'd-m-Y',
scrollMonth : false,
scrollInput : false
});
set scrollMonth to false
jQuery('#datetimepicker4').datetimepicker({
format:'d.m.Y H:i',
lang:'ru',
scrollMonth : false
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With