close bootstrap modal without jquery code example
Example 1: on modal close jquery
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
Example 2: do not close dialog box when click outside bootstrap modal
<div id="idModal" class="modal hide" data-backdrop="static" data-keyboard="false">