bootstrap modal ok cancel 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...
})