jQuery Mobile w przykładach - <form><select> Grupa list rozwijalnych

<form><select> grupa

<!DOCTYPE html>
<html>
<head>
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
   <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
   <script src="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
</head>
<body>
<div data-role="page">
   <div data-role="header" data-position="fixed"><H1>Header</H1></div>
   <div role="main" class="ui-content">
      <form>
         <fieldset data-role="controlgroup">
            <legend>Vertical controlgroup:</legend>
            <label for="select-native-5">Select A</label>
            <select name="select-native-5" id="select-native-5">
               <option value="#">One</option>
               <option value="#">Two</option>
               <option value="#">Three</option>
            </select>
            <label for="select-native-6">Select B</label>
            <select name="select-native-6" id="select-native-6">
               <option value="#">One</option>
               <option value="#">Two</option>
               <option value="#">Three</option>
            </select>
            <label for="select-native-7">Select C</label>
            <select name="select-native-7" id="select-native-7">
               <option value="#">One</option>
               <option value="#">Two</option>
               <option value="#">Three</option>
            </select>
         </fieldset>
         <fieldset data-role="controlgroup" data-type="horizontal">
            <legend>Horizontal controlgroup:</legend>
            <label for="select-native-11">Select A</label>
            <select name="select-native-11" id="select-native-11">
               <option value="#">One</option>
               <option value="#">Two</option>
               <option value="#">Three</option>
            </select>
            <label for="select-native-12">Select B</label>
            <select name="select-native-12" id="select-native-12">
               <option value="#">One</option>
               <option value="#">Two</option>
               <option value="#">Three</option>
            </select>
            <label for="select-native-13">Select C</label>
            <select name="select-native-13" id="select-native-13">
               <option value="#">One</option>
               <option value="#">Two</option>
               <option value="#">Three</option>
            </select>
         </fieldset>
      </form>
   </div>
   <div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>
Pobierz kod