$(document).ready(function(){
$(".btn").click(function(){
$("#myModal").modal('hide');
});
});
$('#myModal').modal('hide');
$('#myModal').modal('show');
$('#myModal').on('hidden.bs.modal', function (e) {
// do something...
});
/* This event is fired when the modal has finished being hidden from the user
* (will wait for CSS transitions to complete).
*/
$('#myModal').on('hidden.bs.modal', function (e) {
// do something...
})
$(() => {
$(".btn").on('click', function(){
$("#myModal").modal('hide');
});
});