0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

Modal docs: Add MDN autofocus docs link

This commit is contained in:
Chris Rebert 2015-08-20 22:05:55 -07:00
parent 6623ad2e9b
commit 30cc2c4815

View File

@ -11,7 +11,7 @@ Modals are streamlined, but flexible, dialog prompts with the minimum required f
* Will be replaced with the ToC, excluding the "Contents" header
{:toc}
**Due to how HTML5 defines its semantics, the `autofocus` HTML attribute has no effect in Bootstrap modals.** To achieve the same effect, use some custom JavaScript:
**Due to how HTML5 defines its semantics, [the `autofocus` HTML attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autofocus) has no effect in Bootstrap modals.** To achieve the same effect, use some custom JavaScript:
{% highlight js %}
$('#myModal').on('shown.bs.modal', function () {