Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit bc09540

Browse files
author
scottjehl
committed
updated example code
1 parent 5456827 commit bc09540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/forms/docs-forms.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2>Preventing auto-initialization of form elements</h2>
5252
<p>Or, if you'd like to prevent auto-initialization without adding attributes to your markup, you can customize the selector that is used for preventing auto-initialization by setting the page plugin's <code>keepNative</code> option (which defaults to <code>"[data-role="none"]</code>. Be sure to configure this option inside an event handler bound to the <code>mobileinit</code> event, so that it applies to the first page as well as subsequent pages that are loaded.</p>
5353
<pre><code>
5454
$(document).bind('mobileinit',function(){
55-
<strong>$.mobile.page.prototype.options.keepNative = "[data-role='none'], .foo, .bar";</strong>
55+
<strong>$.mobile.page.prototype.options.keepNative = "select, input.foo, textarea.bar";</strong>
5656
});
5757
</pre></code>
5858

0 commit comments

Comments
 (0)