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