How to prevent Bootstrap modal from closing when clicking outside?

Posted by Pinki | Updated on

In this example you will learn, how to prevent Bootstrap modal from closing when clicking outside. You can prevent this from happening by setting the modal’s backdrop option to static and keyboard option to false, as shown in the following example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers