javascript modal close event code example
Example 1: on modal close jquery
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
Example 2: javascript modal close
$('#closemodal').click(function() {
$('#modalwindow').modal('hide');
});
Example 3: add event listener on modal close
$('#registration-exams-modal').on('hidden.bs.modal', function () {
alert('close');
})
Example 4: when modal close event
$("yourid").on('hide.bs.modal', function(){
// do it here
});