Page 108 - JqueryMobile_Manual
P. 108

108

               <body>

               <div data-role="page">
                 <div data-role="header">
                   <h1>Range Slider</h1>
                 </div>

                 <div data-role="main" class="ui-content">
                   <form method="post" action="/action_page_post.php">
                     <div data-role="rangeslider">
                       <label for="price-min">Price:</label>
                       <input type="range" name="price-min" id="price-min" value="200" min="0" max="1000">
                       <label for="price-max">Price:</label>
                       <input type="range" name="price-max" id="price-max" value="800" min="0" max="1000">
                     </div>
                       <input type="submit" data-inline="true" value="Submit">
                       <p>The range slider can be useful for allowing users to select a specific price range when browsing
               products.</p>
                     </form>
                 </div>
               </div>

               </body>
               </html>

               Create a flip toggle switch
               tryjqmob_forms_select_switch.html
               <!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.5/jquery.mobile-1.4.5.min.css">
               <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
               <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
               </head>
               <body>

               <div data-role="page">
                 <div data-role="main" class="ui-content">
                   <form method="post" action="/action_page_post.php">
                     <label for="switch">Flip Toggle Switch:</label>
                       <input type="checkbox" data-role="flipswitch" name="switch" id="switch">
                       <br>
                     <input type="submit" data-inline="true" value="Submit">
                   </form>
                 </div>
               </div>

               </body>
               </html>
   103   104   105   106   107   108   109   110   111   112   113