Page 88 - JqueryMobile_Manual
P. 88

88

                 <div data-role="main" class="ui-content">
                   <form>
                     <input data-type="search" id="divOfPs-input">
                   </form>
                   <div class="elements" data-filter="true" data-input="#divOfPs-input">
                     <p><strong>These</strong> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam</p>
                     <p><strong>p elements</strong> nonumy eirmod tempor invidunt ut labore et dolore magna
               aliquyam</p>
                     <p><strong>are</strong> et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est</p>
                     <p><strong>filterable</strong> Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
               consetetur</p>
                   </div>
                 </div>

                 <div data-role="footer">
                   <h1>Insert Footer Text Here</h1>
                 </div>
               </div>

               </body>
               </html>

                                                        Chapter 14
                                                  jQuery Mobile Forms
                                                         Text inputs
                                                   tryjqmob_forms_inputs.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="header">
                 <h1>Text Inputs</h1>
                 </div>

                 <div data-role="main" class="ui-content">
                   <form method="post" action="/action_page_post.php">
                     <div class="ui-field-contain">
                       <label for="fullname">Full name:</label>
                       <input type="text" name="fullname" id="fullname">
                       <label for="bday">Date of Birth:</label>
                       <input type="date" name="bday" id="bday">
                       <label for="email">E-mail:</label>
                       <input type="email" name="email" id="email" placeholder="Your email..">
                     </div>
                     <input type="submit" data-inline="true" value="Submit">
                   </form>
                 </div>
               </div>
               </body>
               </html>
   83   84   85   86   87   88   89   90   91   92   93