Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

296 lines (275 sloc) 15.544 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Selects - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
<script src="../../../js/jquery.js"></script>
<script src="../_assets/js/jqm-demos.js"></script>
<script src="../../../js/"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-theme="f">
<h1>Selects</h1>
<a href="../" data-icon="home" data-iconpos="notext" data-ajax="false">Home</a>
</div><!-- /header -->
<div data-role="content">
<div class="content-primary">
<h2>Native &amp; Custom select</h2>
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-" class="select">Native select:</label>
<select name="select-" id="select-">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-custom-a" class="select">Custom select:</label>
<select name="select-custom-a" id="select-custom-a" data-native-menu="false">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-custom-a1" class="select">Custom select, 1 selected:</label>
<select name="select-custom-a1" id="select-custom-a1" data-native-menu="false">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express" selected="selected">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-custom-a2" class="select">Custom select, 1 disabled:</label>
<select name="select-custom-a2" id="select-custom-a2" data-native-menu="false">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express" disabled="disabled">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-3" class="select">Custom select, long:</label>
<select name="select-3" id="select-3" data-native-menu="false">
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-4-a" class="select">Custom select, data-placeholder:</label>
<select name="select-4-a" id="select-4-a" data-native-menu="false">
<option value="choose-one" data-placeholder="true">Choose one...</option>
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-4-b" class="select">Custom select, option w/o value:</label>
<select name="select-4-b" id="select-4-b" data-native-menu="false">
<option>Choose one...</option>
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-5" class="select">Custom select, option w/o value/content:</label>
<select name="select-5" id="select-5" data-native-menu="false">
<option></option>
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-multiple-a6" class="select">Custom multiple select:</label>
<select name="select-multiple-a6" id="select-multiple-a6" multiple="multiple" data-native-menu="false">
<option>Choose options</option>
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-multiple-a7" class="select">Custom multiple select, long:</label>
<select name="select-multiple-a7" id="select-multiple-a7" multiple="multiple" data-native-menu="false">
<option>Choose options</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-optgroup-a8" class="select">Native select, optgroup:</label>
<select name="select-optgroup-a8" id="select-optgroup-a8">
<option>Choose shipping method</option>
<optgroup label="USPS">
<option value="standard" selected>Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</optgroup>
<optgroup label="FedEx">
<option value="firstOvernight">First Overnight</option>
<option value="expressSaver">Express Saver</option>
<option value="ground">Ground</option>
</optgroup>
</select>
</div>
</div><!--/demo-html -->
<div data-demo-html="true">
<div data-role="fieldcontain">
<label for="select-optgroup-a9" class="select">Custom select, optgroup:</label>
<select name="select-optgroup-a9" id="select-optgroup-a9" data-native-menu="false">
<option>Choose shipping method</option>
<optgroup label="USPS">
<option value="standard" selected>Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</optgroup>
<optgroup label="FedEx">
<option value="firstOvernight">First Overnight</option>
<option value="expressSaver">Express Saver</option>
<option value="ground">Ground</option>
</optgroup>
</select>
</div>
</div><!--/demo-html -->
</div><!--/content-primary -->
</div><!-- /content -->
<div class="jqm-footer">
<p class="jqm-version"></p>
<p>&copy; 2012 jQuery Foundation and other contributors</p>
</div><!-- /jqm-footer -->
</div><!-- /page -->
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.