how to set condition of modal hide in jquery code example Example: check if modal hide jquery alert($('#registration-exams-modal').hasClass('show'));