Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Activate the content as a Bootstrap modal
If you want to set content as a Bootstrap modal, then use the .modal(options) method.
On button click, the modal generates as in the following script.
$(document).ready(function(){
$("#button1").click(function(){
$("#newModal1").modal({backdrop: true});
});
});
Above, I have set options as "backdrop:true". Another option, we can set is "backdrop: true" ?
|
backdrop: true = Clicking outside the modal, close it. backdrop: false = Clicking outside the modal, won?t close it. |
You can try to run the following code to implement the modal("options") class ?
Example
Bootstrap Example Sample
Advertisements
