{{_i}}Bring Bootstrap's components to life—now with 12 custom jQuery plugins.{{/i}}
{{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}
+{{_i}}Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}
{{_i}}Activate a modal without writing javascript. Set data-toggle="modal"
on a controller element, like a button, along with a data-target="#foo"
or href="#foo"
to target a specific modal to toggle.{{/i}}
{{_i}}Activate a modal without writing JavaScript. Set data-toggle="modal"
on a controller element, like a button, along with a data-target="#foo"
or href="#foo"
to target a specific modal to toggle.{{/i}}
<button type="button" data-toggle="modal" data-target="#myModal">Launch modal</button>-
{{_i}}Call a modal with id myModal
with a single line of javascript:{{/i}}
{{_i}}Call a modal with id myModal
with a single line of JavaScript:{{/i}}
$('#myModal').modal(options)
{{_i}}Options can be passed via data attributes or javascript. For data attributes, append the option name to data-
, as in data-backdrop=""
.{{/i}}
{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-backdrop=""
.{{/i}}