Answers for "bootstrap close modal function"

-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
0

bootstrap modal

$('#myModal').on('shown.bs.modal', function () {
  $('#myInput').trigger('focus')
})
Posted by: Guest on January-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language