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