on modal close bootstrap jquery code example
Example 1: on modal close jquery
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
Example 2: bootstrap modal prevent close
$('#myModal').modal({backdrop: 'static', keyboard: false})