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

Author: Zeeshan Arshad     418     05/27/2015

Estimated reading time: 0 minutes, 4 seconds

Zeeshan Arshad - Lifestyle Blog

If using Java Script then:

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

and if HTML:

« Return to Blog