Bootstrap - Modals
We have styled all Bootstrap elements just as you want!
Basic Modal
Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.
Options
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-backdrop=""
.
Name | type | default | description |
---|---|---|---|
backdrop |
boolean or the string 'static'
|
true |
Includes a modal-backdrop element. Alternatively, specify static for a backdrop which doesn't close the modal on click.
|
keyboard | boolean | true | Closes the modal when escape key is pressed |
show | boolean | true | Shows the modal when initialized. |
remote | path | false |
This option is deprecated since v3.3.0 and has been removed in v4.We recommend instead using client-side templating or a data binding framework, or calling jQuery.load yourself.
If a remote URL is provided, content will be loaded one timevia jQuery's
Copy
|