diff options
Diffstat (limited to 'docs/javascript/overview.md')
| -rw-r--r-- | docs/javascript/overview.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/javascript/overview.md b/docs/javascript/overview.md index e7a137ddd..8d22d4020 100644 --- a/docs/javascript/overview.md +++ b/docs/javascript/overview.md @@ -38,6 +38,11 @@ Alternatively, to target a specific plugin, just include the plugin's name as a $(document).off('.alert.data-api') {% endhighlight %} +<div class="bs-callout bs-callout-danger"> + <h4>Only one plugin per element via data attributes</h4> + <p>Don't use data attributes from multiple plugins on the same element. For example, a button cannot both have a tooltip and toggle a modal. To accomplish this, use a wrapping element.</p> +</div> + ### Programmatic API We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon. |
