Add data-toggle="dropdown"
to a link or button to toggle a dropdown.
<div class="dropdown"> - <a class="dropdown-toggle" href="#">Dropdown trigger</a> + <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown trigger</a> <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> ... </ul> diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index a1230d83fd..2ee086847d 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -306,7 +306,7 @@ $('#myModal').on('hidden', function () { - @@ -409,7 +409,7 @@ $('#myModal').on('hidden', function () {{{_i}}Add
data-toggle="dropdown"
to a link or button to toggle a dropdown.{{/i}}<div class="dropdown"> - <a class="dropdown-toggle" href="#">Dropdown trigger</a> + <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown trigger</a> <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> ... </ul>