What is the difference between the following two lines of code?$('#Mymodalprompt').modal({ keyboard: false });$.fn.modal.constructor.defaults.keyboard = false;?
Answer Posted / Chetendra Kumar
The first line disables the keyboard navigation for a specific modal with the id '#Mymodalprompt'. The second line sets the default behavior of all modals to disable the keyboard navigation.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers