hide modal when clicking outside bootstrap code example
Example: bootstrap modal not close
$('#MymodalPreventScript').modal({
backdrop: 'static',
keyboard: false
});
$('#MymodalPreventScript').modal({
backdrop: 'static',
keyboard: false
});