How do I hide the calendar after a date is selected? Is there a specific function that I can use? My code below:
$(\'#dp1\').datepicker({ format: \'mm-d
You can change source code, bootstrap-datepicker.js. Add this.hide(); like ne
this.hide();
if (this.viewMode !== 0) { this.date = new Date(this.viewDate); this.element.trigger({ type: 'changeDate', date: this.date, viewMode: DPGlobal.modes[this.viewMode].clsName }); this.hide();//here }