show.bs.modal == visibility = 'collapse' in javascript code example Example: check if modal hide jquery alert($('#registration-exams-modal').hasClass('show'));