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