Tell me what is the difference between the following two lines of code?
$('#myModalPrompt').modal({ keyboard: false });
$.fn.modal.Constructor.DEFAULTS.keyboard = false;?
Submitted by: MuhammadIn 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.
Submitted by: Muhammad
Submitted by: Muhammad
Read Online Bootstrap Job Interview Questions And Answers
Top Bootstrap Questions
☺ | Do you know what is Bootstrap well? |
☺ | Do you know what is Bootstrap Jumbotron? |
☺ | What is Fluid Layout in Bootstrap? |
☺ | What is button group in Bootstrap? |
☺ | Tell me what is Bootstrap collapsing elements? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |