Bootstrap-Datetimepicker not working with the jQuery 3

Karan Batra picture Karan Batra · Dec 20, 2016 · Viewed 23.8k times · Source

Bootstrap-datetimepicker is not working with jQuery 3.1.1. I need to use the same jQuery library to run all the other dependent functions.

Answer

kelvin kantaria picture kelvin kantaria · Jul 19, 2018

I am getting same error.

input.size is not a function TypeError

modify bootstrap-datetimepicker.js line no: 2253

if (input.size() === {

to

if (input.length === 0) {

line no:2264

if (element.find('.datepickerbutton').size() === 0) {

to

if (element.find('.datepickerbutton').length === 0) {

add css

.input-group.date .dropdown-menu{
     display: block;    
 }