do action when modal is closed bootsrap 4 code example
Example: on modal close jquery
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})