aboutsummaryrefslogtreecommitdiff
path: root/docs/4.0/getting-started/javascript.md
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-01-21 21:02:16 +0100
committerXhmikosR <[email protected]>2018-01-21 22:02:16 +0200
commit5a6be71791a0cc7199c20d2ac1f248612b805518 (patch)
treea582a9b0745b0e5c79d311ac0dff98a00adfb08d /docs/4.0/getting-started/javascript.md
parentdb70164d139c2cc331c671bec24547bd19bee8ac (diff)
downloadbootstrap-5a6be71791a0cc7199c20d2ac1f248612b805518.tar.xz
bootstrap-5a6be71791a0cc7199c20d2ac1f248612b805518.zip
Remove escaping selector and add a warning to inform folks to escape their selectors (#25390)
Diffstat (limited to 'docs/4.0/getting-started/javascript.md')
-rw-r--r--docs/4.0/getting-started/javascript.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md
index 72d1e14ec..0c1eb5f39 100644
--- a/docs/4.0/getting-started/javascript.md
+++ b/docs/4.0/getting-started/javascript.md
@@ -32,6 +32,11 @@ Alternatively, to target a specific plugin, just include the plugin's name as a
$(document).off('.alert.data-api')
{% endhighlight %}
+{% callout warning %}
+##### Escaping selectors
+If you use special selectors, for example: `collapse:Example`, be sure to escape them, because they'll be passed through jQuery.
+{% endcallout %}
+
## Events
Bootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. `show`) is triggered at the start of an event, and its past participle form (ex. `shown`) is triggered on the completion of an action.