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
If you have multiple textboxes for which you have applied datepicker, then old solution might cause problem, Please try this instead,
$('.datepicker').datepicker({
format: "dd/mm/yyyy",
autoclose: true,
}).on('changeDate', function (ev) {
$(this).datepicker('hide');
});
Look out this, https://github.com/eternicode/bootstrap-datepicker/issues/500
Note: Do not forget, we are using class selector of jquery, so you need to apply datepicker class to your textbox.