Answers for "close bootstrap modal with jquery"

-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

hide bootstrap modal jquery

$(document).ready(function(){
        $(".btn").click(function(){
            $("#myModal").modal('hide');
        });
});
Posted by: Guest on September-19-2020
4

close bootstrap modal with javascript

$('#myModal').modal('hide');
Posted by: Guest on April-16-2020

Code answers related to "close bootstrap modal with jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language