modal hide event jquery code example
Example 1: on modal close jquery
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
Example 2: hide bootstrap modal jquery
$(document).ready(function(){
$(".btn").click(function(){
$("#myModal").modal('hide');
});
});
Example 3: check if modal hide jquery
alert($('#registration-exams-modal').hasClass('show'));
Example 4: jquery on modal show
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});