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: close bootstrap modal with javascript
$('#myModal').modal('hide');
Example 4: add event listener on modal close
$('#registration-exams-modal').on('hidden.bs.modal', function () {
alert('close');
})
Example 5: bs modal service close
this._bsModalRef.hide();
Example 6: modal dismiss