close the modal after showing success code example
Example 1: modal dismiss
Example 2: bootstrap modal not close
$('#MymodalPreventScript').modal({
backdrop: 'static',
keyboard: false
});
$('#MymodalPreventScript').modal({
backdrop: 'static',
keyboard: false
});