This commit is contained in:
Mark Otto 2014-07-13 00:08:25 -07:00
parent cd7250d6a8
commit 2c540b7e33
1 changed files with 4 additions and 4 deletions

View File

@ -131,13 +131,13 @@
</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
<a id="dLabel" data-target="#" href="http://example.com" type="button" data-toggle="dropdown">
Dropdown trigger
<span class="caret"></span>
</button>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
...