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