Answers for "how to hide a modal on click jquery without use modal('toggle')"

1

hide bootstrap modal jquery

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

hide and show modal jquery

$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
Posted by: Guest on April-18-2021

Browse Popular Code Answers by Language