on close modal bootstrap jquery code example
Example 1: on modal close jquery
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
Example 2: close bootstrap modal with javascript
$('#myModal').modal('hide');
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
$('#myModal').modal('hide');