how to triger event on modal show code example
Example: add event listener on modal close
$('#registration-exams-modal').on('hidden.bs.modal', function () {
alert('close');
})
$('#registration-exams-modal').on('hidden.bs.modal', function () {
alert('close');
})