modal auto close false code example
Example 1: close bootstrap modal with javascript
$('#myModal').modal('hide');
Example 2: do not close dialog box when click outside bootstrap modal
<div id="idModal" class="modal hide" data-backdrop="static" data-keyboard="false">
Example 3: bootstrap modal not close
$('#MymodalPreventScript').modal({
backdrop: 'static',
keyboard: false
});