Create inline select
Description
The following code shows how to create inline select.
Example
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css" />
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script
src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
</head><!-- www. ja va 2s . c o m-->
<body>
<div data-role="page">
<div data-role="fieldcontain" id="fieldcontain">
<select name="select-choice-1" id="custom" data-native-menu="false"
data-inline="true">
<option>Select an option</option>
<option value="a">A</option>
<option value="b">B</option>
<option value="c">C</option>
<option value="d">D</option>
</select>
</div>
</div>
</body>
</html>