On the page, a datepicker is used in the element using the modal. There was a problem that the modal was closed every time I clicked on a date on the datepicker's calendar. $('#test').datepicker({ format: "yyyy-mm-dd", autoclose: true }); The above code is an existing code with datepicker set. Below is a code to prevent the modal from closing when the date is selected with the datepicker in the ..