Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/forms/forms-selects.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ <h2>Select menus</h2>


<h2>Data attribute support</h2>
<p>You can specify any jQuery Mobile button data- attribute on a select element too.</p>
<p>You can specify any jQuery Mobile button data- attribute on a select element too.</p>
<p>To allow a default select to show, and disable jQuery Mobile's custom select menu, use <code>data-role="none"</code>.</p>



<div data-role="fieldcontain">
<label for="select-choice-3" class="select">Actions</label>
Expand Down
3 changes: 2 additions & 1 deletion js/jquery.mobile.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ $.widget( "mobile.page", $.mobile.widget, {
.slider();

this.element
.find( "select:not([data-role='slider'])" )
.find( "select" )
.not( "[data-role='slider'], [data-role='none']" )
.selectmenu();
}
});
Expand Down