Answers for "data dismiss modal jquery event"

5

on modal close jquery

$('#myModal').on('hidden.bs.modal', function () {
  // do something…
})
Posted by: Guest on April-10-2020
-2

data-dismiss= modal in jquery

$(document).ready(function(){
        // Open modal on page load
        $("#myModal").modal('show');
 
        // Close modal on button click
        $(".btn").click(function(){
            $("#myModal").modal('hide');
        });
    });
Posted by: Guest on August-29-2020
1

add event listener on modal close

$('#registration-exams-modal').on('hidden.bs.modal', function () {
  alert('close');
})
Posted by: Guest on July-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language