javascript - Date Picker automatically popping up when page is open only in IE10 -


When I open my page in IE10 for some reason, the date picker is automatically open on the screen and visible gives. This is working properly in Firefox and does not pop up until you click on the text box which is connected to it. Does anyone know why this is happening in IE10?

  $ (function () {$ (" #datepicker ") .datepicker ();});  
  & lt; Link rel = "stylesheet" href = "// code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"> & Lt; Script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "// code.jquery.com/ui/1.11.2/jquery-ui.js"></script> Date: & lt; Input type = "text" name = "purchased" id = "datepicker" required = "yes" message = "Please enter a received date." Mask = "99/99/9999" & gt;  

Maybe that's because Focuses automatically when your input focuses Try

$ ("#datepicker") .datepicker (); $ ("#datepicker") .blur ();

To remove the focus.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -