adspace


Tell me what is the difference between the following two lines of code?$('#Mymodalprompt').modal({ keyboard: false });$.fn.modal.constructor.defaults.keyboard = false;?

Answer Posted / Sulekha

The first line disables the keyboard for a specific modal instance, while the second line sets the default behavior so that all new modals will have the keyboard disabled.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest version of bootstrap?

88