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
None of the above worked for me, however overriding the datepicker default option worked like a charm, and is a one-liner:
$.fn.datepicker.defaults.autoclose = true;