jquery check if a button in a modal is clicked code example Example: check if modal hide jquery alert($('#registration-exams-modal').hasClass('show'));