-4

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]
  • https://jsfiddle.net/Venkatesh_srikanth/e2mwv05v/11/ – Venkatesh Srikanth Aug 29 '17 at 07:53
  • What do you mean navigate to other tab or inspect ? And then it works ?What does not work can you right the codeblock that doesn't work? – l.g.karolos Aug 29 '17 at 07:58
  • The above mentioned Fiddle not work normally when open in the Chrome browser. after opening the browser I try to click the field but it doesn't work. I open the new tab in the browser or inspect the web page and click the date picker field it works. (Only in Chrome) – Venkatesh Srikanth Aug 29 '17 at 08:10

2 Answers2

0

$( 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.

l.g.karolos
  • 1,131
  • 1
  • 10
  • 25
0

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

l.g.karolos
  • 1,131
  • 1
  • 10
  • 25