⟩ Tell me what is the difference between the following two lines of code? $('#myModalPrompt').modal({ keyboard false }); $.fn.modal.Constructor.DEFAULTS.keyboard = false;?
In the first line will initialize a modal dialog prompt with id #myModalPrompt, and set only it to ignore keyboard event. The second line will change the default settings for the modal plugin by modifying the plugin’s Constructor.DEFAULTS object, and will have an impact on all modal dialog prompts.