diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/javascript/dropdowns.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/javascript/dropdowns.md b/docs/javascript/dropdowns.md index e8682b66d..8a8c07c45 100644 --- a/docs/javascript/dropdowns.md +++ b/docs/javascript/dropdowns.md @@ -130,12 +130,13 @@ title: Dropdowns </ul> </div> {% endhighlight %} - <p>To keep URLs intact, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p> + <p>To keep URLs intact with link buttons, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p> {% highlight html %} <div class="dropdown"> - <button id="dLabel" type="button" data-toggle="dropdown">Dropdown trigger</button> - Dropdown - </button> + <a id="dLabel" data-target="#" href="http://example.com" type="button" data-toggle="dropdown"> + Dropdown trigger + <span class="caret"></span> + </a> <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> ... |
