aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs/4.3/getting-started/javascript.md
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-08-04 12:05:04 +0200
committerJohann-S <[email protected]>2019-08-04 13:22:47 +0200
commit83058fb34c7f0f3ea8855cbf510d6da22280b4d3 (patch)
tree7216653cee42dbbf4537d8c5016bfceed74806ff /site/content/docs/4.3/getting-started/javascript.md
parent8468f4a37e4bdbbef7a8bcc8207c8cef4999ea5d (diff)
downloadbootstrap-83058fb34c7f0f3ea8855cbf510d6da22280b4d3.tar.xz
bootstrap-83058fb34c7f0f3ea8855cbf510d6da22280b4d3.zip
explain how to use bootstrap 5 with jQuery
Diffstat (limited to 'site/content/docs/4.3/getting-started/javascript.md')
-rw-r--r--site/content/docs/4.3/getting-started/javascript.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/site/content/docs/4.3/getting-started/javascript.md b/site/content/docs/4.3/getting-started/javascript.md
index 4e3e793db..a6fd3d92d 100644
--- a/site/content/docs/4.3/getting-started/javascript.md
+++ b/site/content/docs/4.3/getting-started/javascript.md
@@ -37,6 +37,10 @@ Some plugins and CSS components depend on other plugins. If you include plugins
Our dropdowns, popovers and tooltips also depend on [Popper.js](https://popper.js.org/).
+## Still wanting to use jQuery? It's possible!
+
+Bootstrap 5 is designed to be used without jQuery, but it's still possible to use our components with jQuery. **If Bootstrap detect `jQuery` in the window object** it'll add all of our components in jQuery's plugin system, it means you'll be able to do: `$('[data-toggle="tooltip"]').tooltip()` to enable tooltips and the same goes for our other components.
+
## Data attributes
Nearly all Bootstrap plugins can be enabled and configured through HTML alone with data attributes (our preferred way of using JavaScript functionality). Be sure to **only use one set of data attributes on a single element** (e.g., you cannot trigger a tooltip and modal from the same button.)