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

<form><select> grupa niestandardowych

<!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" data-native-menu="false">
               <option value="#">Option 1</option>
               <option value="#">Option 2</option>
               <option value="#">Option 3</option>
            </select>
            <label for="select-native-6">Select B</label>
            <select name="select-native-6" id="select-native-6" data-native-menu="false">
               <option value="#">Option 1</option>
               <option value="#">Option 2</option>
               <option value="#">Option 3/option>
            </select>
            <label for="select-native-7">Select C</label>
            <select name="select-native-7" id="select-native-7" data-native-menu="false">
               <option value="#">Option 1</option>
               <option value="#">Option 2</option>
               <option value="#">Option 3</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" data-native-menu="false">
               <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" data-native-menu="false">
               <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" data-native-menu="false">
               <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