I use the latest Bootstrap datepicker.js. All works fine except that when I pick a date from the drop down, it does not automatically close it. I searched web and tried to u
This worked for me
$(".date-picker").change(function() { setTimeout(function() { $(".date-picker").datepicker('hide'); $(".date-picker").blur(); }, 50); });