« Return to Blog

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

Author: Zeeshan Arshad     170     05/27/2015

Estimated reading time: 0 minutes, 4 seconds

If using Java Script then:

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

and if HTML: