javascript - Why is that Jquery for datepicker is not closing onclick, outside of it? -


i use datepicker jquery select date , below code:

<link rel="stylesheet"   href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="http://code.jquery.com/jquery-1.10.2.js"></script> <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script>     jquery(function() {         jquery( "#datepicker" ).datepicker({dateformat: "yy-mm-dd"});         jquery("#datepicker").blur(function(e) {              jquery(this).datepicker("hide");           });     }); </script> 

it works when use .blur function. but, not able change month. when change month, hides. how can resolve problem ?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -