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