Answers for "how to check if a modal is open in jquery"

2

check if modal hide jquery

alert($('#registration-exams-modal').hasClass('show'));
Posted by: Guest on July-30-2020
7

how to show modal with jquery

show Modal:
----------------------------
 $('#modal_id').modal('show');

hide and show Modal (toggle):
-----------------------------
$('#modal_id').toggle('modal');
Posted by: Guest on October-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language