diff --git a/javascript.html b/javascript.html index e397efc40d..8da1cb5906 100644 --- a/javascript.html +++ b/javascript.html @@ -273,7 +273,7 @@ $('#myModal').on('show.bs.modal', function (e) {
If a remote URL is provided, content will be loaded via jQuery's load
method and injected into the root of the modal element. If you're using the data api, you may alternatively use the href
attribute to specify the remote source. An example of this is shown below:
If a remote URL is provided, content will be loaded via jQuery's load
method and injected into the root of the modal element. If you're using the data-api, you may alternatively use the href
attribute to specify the remote source. An example of this is shown below:
When using tooltips on elements within a .btn-group
or an .input-group
, you'll have to specify the option container: 'body'
(documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip is triggered).
To add a tooltip to a disabled
or .disabled
element, put the element inside of a <div>
or <span>
, and apply the tooltip to that element instead.
Trigger the tooltip via JavaScript:
@@ -967,6 +970,10 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {When using popovers on elements within a .btn-group
or an .input-group
, you'll have to specify the option container: 'body'
(documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the popover is triggered).
To add a popover to a disabled
or .disabled
element, put the element inside of a <div>
or <span>
, and apply the popover to that element instead.
Four options are available: top, right, bottom, and left aligned.