bootsrap modal when click out of modal it does not close code example
Example: bootstrap modal prevent close
$('#myModal').modal({backdrop: 'static', keyboard: false})
$('#myModal').modal({backdrop: 'static', keyboard: false})