Prevent Bootstrap Modal from disappearing when clicking outside or pressing escape

How to close modal dialog only by close icon?

code:

If using javascript then:

[js]
$(‘#myModal’).modal({
backdrop: ‘static’,
keyboard: false
})
[/js]

and if HTML:

[html]

[/html]

Author

Ludis

Posted on

2015-05-21

Updated on

2015-05-21

Licensed under

Comments