0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

Corrected tag for Alert JS animation example from <a> to <button>

Also removed href attribute and added type="button"
This commit is contained in:
nkav 2014-01-19 14:19:20 -05:00 committed by Chris Rebert
parent 4120aadd68
commit 4380ca4348

View File

@ -1366,7 +1366,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
<h3>Markup</h3>
<p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.</p>
{% highlight html %}<a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>{% endhighlight %}
{% highlight html %}<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>{% endhighlight %}
<h3>Methods</h3>