How to Prevent Bootstrap Modal from Disappearing when Clicking Outside or Pressing Escape

Author: Zeeshan Arshad     66     05/27/2015

Estimated reading time: 0 minutes, 4 seconds

If using Java Script then:

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

and if HTML:


Was this topic helpful?

Yes
No
Subscribe YouTube Channel

Zeeshan Arshad is a self-taught and multi-dimensional person with extraordinary track record of success with international clients and students.

Feel free to contact him for your project, training purpose or guidance.