Catch event close modal Bootstrap code example
Example: bootstrap 4 modal close event handler
$('#myModal').on('hidden.bs.modal', function (e) {
// do something...
})
$('#myModal').on('hidden.bs.modal', function (e) {
// do something...
})