How to disable click outside of bootstrap modal area to close modal?

We can do it in two ways.

1. If you open the popup by js then you can use
$('#Your_Popup_id').modal({backdrop: 'static', keyboard: false})

2. If you are use data attributes then you can do it by the use of
<a data-target="#Your_Popup_id" data-toggle="modal" data-backdrop="static" data-keyboard="false">
    Click here to open popup

Suggest An Answer

No suggestions avaliable!

Latest post from Bootstrap 3 Interview Questions

Ask Question