event on bootstrap modal close code example
Example 1: bootstrap modal prevent close
$('#myModal').modal({backdrop: 'static', keyboard: false})
Example 2: when modal close event
$("yourid").on('hide.bs.modal', function(){
// do it here
});
$('#myModal').modal({backdrop: 'static', keyboard: false})
$("yourid").on('hide.bs.modal', function(){
// do it here
});