Answers for "how to close modal in bootstrap"

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

close bootstrap modal with javascript

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

bootstrap modal prevent close

$('#myModal').modal({backdrop: 'static', keyboard: false})
Posted by: Guest on March-02-2020
1

bootstrap modal not close

  		$('#MymodalPreventScript').modal({
    		backdrop: 'static',
    		keyboard: false
		});
Posted by: Guest on March-10-2020
0

bootstrap 3 modal close only with button

<--! Add following to modal Div : data-backdrop='static' -->
<div id="modal" class="modal hide fade in" data-keyboard="false" data-backdrop="static">
Posted by: Guest on May-14-2020

Code answers related to "how to close modal in bootstrap"

Code answers related to "Javascript"

Browse Popular Code Answers by Language