mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Update javascript.md
This commit is contained in:
parent
09c3a8f893
commit
96ed9f7bf0
@ -67,8 +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 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`).
|
||||
|
||||
{{< highlight js >}}
|
||||
$('#myTab a').on('shown.bs.tab', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user