mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-24 16:14:44 +00:00
updated example code
This commit is contained in:
parent
54568271d9
commit
bc09540492
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@
|
|||
<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>
|
||||
<pre><code>
|
||||
$(document).bind('mobileinit',function(){
|
||||
<strong>$.mobile.page.prototype.options.keepNative = "[data-role='none'], .foo, .bar";</strong>
|
||||
<strong>$.mobile.page.prototype.options.keepNative = "select, input.foo, textarea.bar";</strong>
|
||||
});
|
||||
</pre></code>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue