This is not working in chrome only. Bootstrap Datetimepicker

1.3k Views Asked by At

Bootstrap Datetimepicker not working in chrome browser only. if we navigate to other tab or inspect the web page it works.

https://jsfiddle.net/Venkatesh_srikanth/e2mwv05v/11/

[Fiddle: My Bootstrap Datetimepicker Code][1]
2

There are 2 best solutions below

7
On

$( document ).ready(function() {});

A page can't be manipulated safely until the document is "ready." jQuery detects this state of readiness for you. Code included inside $( document ).ready() will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute. Code included inside $( window ).on( "load", function() { ... }) will run once the entire page (images or iframes), not just the DOM, is ready.

0
On

Finally the answer was :

well this is a bootstrap 3 library and your using bootstrap 4 alpha 6 so try another library like this one bootstrap-4-datepicker