There are two ways to disable click outside of bootstrap model area to close modal-
- using javascript
$('#myModal').modal({ backdrop: 'static', keyboard: false });
- using data attribute in HTML tag
data-backdrop="static" data-keyboard="false" //write this attributes in that button where you click to open the modal popup.
Ref. Link – https://stackoverflow.com/questions/22207377/disable-click-outside-of-bootstrap-modal-area-to-close-modal