SyntaxFix
Write A Post
Hire A Developer
Questions
If you already have initialized the modal window, then you may want to reset the options with $('#myModal').removeData("modal").modal({backdrop: 'static', keyboard: false}) to make sure it will apply the new options.
$('#myModal').removeData("modal").modal({backdrop: 'static', keyboard: false})