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



Tell me what is the difference between the following two lines of code?$('#Mymodalprompt')..

Answer / 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

More Bootstrap Interview Questions

Tell me what will be the default bootstrap look of the alert created with this following code:<div class="alert" role="alert">warning! Tell me what I'm missing something.</Div>

1 Answers  


What is form control in bootstrap?

1 Answers  


Explain about bootstrap benefits?

1 Answers  


What are contextual colors in bootstrap 3?

1 Answers  


Explain me how many different media queries are used by the bootstrap grid system by default?

1 Answers  


How can you display a code in bootstrap?

1 Answers  


Tell me what are the types of layout available in bootstrap?

1 Answers  


Do you know why use bootstrap?

1 Answers  


Tell me can you put a table within bootstrap panel?

1 Answers  


Tell me which class is used to draw a toolbar of buttons?

1 Answers  


What will be the default bootstrap look of the alert created with this following code:<div class="alert" role="alert">warning! What I'm missing something.</Div>

1 Answers  


Do you know what pagination in bootstrap is and how they are classified?

1 Answers  


Categories