mirror of https://github.com/twbs/bootstrap.git
Update javascript.md
This commit is contained in:
parent
b7a079d808
commit
09c3a8f893
|
|
@ -67,8 +67,8 @@ myModal.addEventListener('show.bs.modal', function (e) {
|
||||||
{{< callout warning >}}
|
{{< callout warning >}}
|
||||||
## jQuery events
|
## jQuery events
|
||||||
|
|
||||||
Bootstrap detect jQuery only if `jQuery` is present in `window` object. If jQuery is found, Bootstrap will emit events thanks to jQuery event system.
|
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 Bootstrap's events you'll have to use jQuery methods (`.on`, `.one`).
|
So if you want to listen to Bootstrap's events, you'll have to use the jQuery methods (`.on`, `.one`).
|
||||||
|
|
||||||
{{< highlight js >}}
|
{{< highlight js >}}
|
||||||
$('#myTab a').on('shown.bs.tab', function () {
|
$('#myTab a').on('shown.bs.tab', function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue