I am using a JQuery datetime plugin in my application. When I scroll down or up my page and if my mouse pointer es 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: /
I am using a JQuery datetime plugin in my application. When I scroll down or up my page and if my mouse pointer es 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/jqplugins/datetimepicker/
Share Improve this question asked May 20, 2016 at 18:07 user1614862user1614862 4,1497 gold badges33 silver badges49 bronze badges2 Answers
Reset to default 12Pass 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
});