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