aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs/4.3/getting-started/javascript.md
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-08-02 15:51:05 +0200
committerJohann-S <[email protected]>2019-08-02 16:50:05 +0200
commit8b2b490f9b58a02494fe8567d6ce5b9c11a9bf65 (patch)
treefca5d7d55bb5f2932eda48f4594b4a839b0a8987 /site/content/docs/4.3/getting-started/javascript.md
parent1ebb8e7d9b4bd52c7fc088aeaec12ab9bcb240c6 (diff)
downloadbootstrap-8b2b490f9b58a02494fe8567d6ce5b9c11a9bf65.tar.xz
bootstrap-8b2b490f9b58a02494fe8567d6ce5b9c11a9bf65.zip
add a way to disable jQuery detection
Diffstat (limited to 'site/content/docs/4.3/getting-started/javascript.md')
-rw-r--r--site/content/docs/4.3/getting-started/javascript.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/4.3/getting-started/javascript.md b/site/content/docs/4.3/getting-started/javascript.md
index 36dcd76b7..bb7dab105 100644
--- a/site/content/docs/4.3/getting-started/javascript.md
+++ b/site/content/docs/4.3/getting-started/javascript.md
@@ -67,7 +67,7 @@ myModal.addEventListener('show.bs.modal', function (e) {
{{< callout warning >}}
## jQuery events
-Bootstrap will detect jQuery only if `jQuery` is present in the `window` object. If jQuery is found, Bootstrap will emit events thanks to jQuery's event system. So if you want to listen to Bootstrap's events, you'll have to use the jQuery methods (`.on`, `.one`).
+Bootstrap will detect jQuery if `jQuery` is present in the `window` object and no `data-no-jquery` attribute on `<body>`. If jQuery is found, Bootstrap will emit events thanks to jQuery's event system. So if you want to listen to Bootstrap's events, you'll have to use the jQuery methods (`.on`, `.one`) instead of `addEventListener`.
{{< highlight js >}}
$('#myTab a').on('shown.bs.tab', function () {