From 7473dc5ac70208d55204790751fdca75bd8b47d1 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 22 Dec 2014 12:58:47 -0800 Subject: apply example tweaks from master branch --- javascript/index.html | 106 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 78 insertions(+), 28 deletions(-) (limited to 'javascript') diff --git a/javascript/index.html b/javascript/index.html index e3e5a0a5e..3a4d7abad 100644 --- a/javascript/index.html +++ b/javascript/index.html @@ -202,7 +202,10 @@

There are some caveats regarding using modals on mobile devices. See our browser support docs for details.

-

Due to how HTML5 defines its semantics, the autofocus HTML attribute has no effect in Bootstrap modals.

+

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:

+
$('#myModal').on('shown.bs.modal', function () {
+    $('#myInput').focus()
+  })

Examples

@@ -213,7 +216,7 @@