Advertisement
Guest User

Chrome Datepicker Bug

a guest
May 22nd, 2014
216
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!doctype html>
  2. <html>
  3. <head>
  4.     <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  5. </head>
  6. <body>
  7.     <input type="date" value="2014-05-22" />
  8.  
  9.     <button id="js-btn-test" type="button">
  10.         An amazing button
  11.     </button>
  12.  
  13.     <div id="js-test-output">
  14.         Test output:
  15.     </div>
  16.  
  17.     <script type="text/javascript">
  18.         var btn = document.getElementById("js-btn-test");
  19.         var output = document.getElementById("js-test-output");
  20.  
  21.         btn.addEventListener("click", function () {
  22.          output.innerHTML += "<p>Clicked</p>";
  23.         });
  24.        
  25.         $(document).on("mouseup", function (evt) {
  26.             return false;
  27.         });
  28.     </script>
  29. </body>
  30. </html>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement