Disable click outside of bootstrap modal area to close modal

0
476

There are two ways to disable click outside of bootstrap model area to close modal-

  1. using javascript$('#myModal').modal({ backdrop: 'static', keyboard: false });
  2. using data attribute in HTML tagdata-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

LEAVE A REPLY

Please enter your comment!
Please enter your name here