aboutsummaryrefslogtreecommitdiff
path: root/javascript.html
diff options
context:
space:
mode:
Diffstat (limited to 'javascript.html')
-rw-r--r--javascript.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript.html b/javascript.html
index a0e96c1c6..d7cc4c7a3 100644
--- a/javascript.html
+++ b/javascript.html
@@ -449,6 +449,7 @@ $('#myModal').on('hidden.bs.modal', function () {
<h2 id="dropdowns-usage">Usage</h2>
+ <p>Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the <code>.open</code> class on the parent list item. When opened, the plugin also adds <code>.dropdown-backdrop</code> as a click area for closing dropdown menus when clicking outside the menu.</p>
<h3>Via data attributes</h3>
<p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p>