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