When we click outside of modal popup, it will close, how to resolve it?

We can resolve this problem in two ways.

1. We can add $('#myModal').modal({backdrop: 'static', keyboard: false})


2.We cam add data-backdrop="static" data-keyboard="false" in <button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false">

Suggest An Answer

No suggestions avaliable!

Latest post from Bootstrap Interview Questions

Ask Question