how to detect if bootstrap modal is closed code example Example: check if modal hide jquery alert($('#registration-exams-modal').hasClass('show'));