Interviewer And Interviewee Guide

Bootstrap Interview Question:

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: Muhammad
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.
Submitted by: Muhammad

Read Online Bootstrap Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.