From 5d39794287c2a28d9d77ce3ac2b2c0fba0c24dfd Mon Sep 17 00:00:00 2001 From: bcarrell Date: Fri, 23 Aug 2013 12:10:52 -0400 Subject: [PATCH] docs: add explanation for adding tooltips to disabled elements, closes #10049 --- javascript.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/javascript.html b/javascript.html index e397efc40d..07d528a170 100644 --- a/javascript.html +++ b/javascript.html @@ -805,6 +805,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {

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).

+
+

Tooltips on disabled elements require placing the tooltip on an outer element instead

+

If you'd like to add a tooltip to a disabled element, place the element inside of a <div> or <span> and apply the tooltip to that element instead.

+

Usage

Trigger the tooltip via JavaScript:

-- 2.47.2