aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/4.0/components/list-group.md2
-rw-r--r--docs/4.0/components/modal.md2
-rw-r--r--docs/4.0/components/navs.md2
-rw-r--r--docs/4.0/examples/offcanvas/offcanvas.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/docs/4.0/components/list-group.md b/docs/4.0/components/list-group.md
index 5fad36d5a..1a2796588 100644
--- a/docs/4.0/components/list-group.md
+++ b/docs/4.0/components/list-group.md
@@ -244,7 +244,7 @@ You can activate a list group navigation without writing any JavaScript by simpl
Enable tabbable list item via JavaScript (each list item needs to be activated individually):
{% highlight js %}
-$('#myList a').click(function (e) {
+$('#myList a').on('click', function (e) {
e.preventDefault()
$(this).tab('show')
})
diff --git a/docs/4.0/components/modal.md b/docs/4.0/components/modal.md
index a903cd884..139e09ffa 100644
--- a/docs/4.0/components/modal.md
+++ b/docs/4.0/components/modal.md
@@ -19,7 +19,7 @@ Before getting started with Bootstrap's modal component, be sure to read the fol
{% highlight js %}
$('#myModal').on('shown.bs.modal', function () {
- $('#myInput').focus()
+ $('#myInput').trigger('focus')
})
{% endhighlight %}
diff --git a/docs/4.0/components/navs.md b/docs/4.0/components/navs.md
index dc014a1ca..a9fb5268b 100644
--- a/docs/4.0/components/navs.md
+++ b/docs/4.0/components/navs.md
@@ -554,7 +554,7 @@ You can activate a tab or pill navigation without writing any JavaScript by simp
Enable tabbable tabs via JavaScript (each tab needs to be activated individually):
{% highlight js %}
-$('#myTab a').click(function (e) {
+$('#myTab a').on('click', function (e) {
e.preventDefault()
$(this).tab('show')
})
diff --git a/docs/4.0/examples/offcanvas/offcanvas.js b/docs/4.0/examples/offcanvas/offcanvas.js
index d14cd68b8..a89262a26 100644
--- a/docs/4.0/examples/offcanvas/offcanvas.js
+++ b/docs/4.0/examples/offcanvas/offcanvas.js
@@ -1,5 +1,5 @@
$(document).ready(function () {
- $('[data-toggle="offcanvas"]').click(function () {
+ $('[data-toggle="offcanvas"]').on('click', function () {
$('.row-offcanvas').toggleClass('active')
});
});