topical media & game development

talk show tell print

mobile-js-sample-chapter-4-custom-swatch.htm / htm



  <!DOCTYPE html>
  <html>
    <head>
      <title>jQuery Mobile Application</title>
  
          <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
          <link rel="stylesheet" href="swatch-e-custom.css" />
          <script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
          <script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
  
    </head>
    <body>
    
          <section id="swatch-e" data-role="page" data-theme="e">
            <header data-role="header"><h1>jQuery Mobile</h1></header>
            <div class="content" data-role="content">
                  <h3>Swatch E: New and Improved</h3>
                  <p>Some sample form elements and buttons:</p>
                  <form  action=<formprocessor.php> method="post">
                <div data-role="fieldcontain">
                  <label for="select-restaurants">Select Your Restaurants:</label>
                          <select id="select-restaurants" name="select-restaurants" data-native-menu="false" multiple="multiple">
                            <option value="choose" data-placeholder="true">Choose...</option>
                            <optgroup label="French">
                              <option value="lecentral">Le Central</option>
                                  <option value="bistrovandome">Bistro Vandome</option>
                                  <option value="antoines">Antoine's</option>
                            </optgroup>
                            <optgroup label="Cajun">
                              <option value="bayoubobs">Bayou Bob's</option>
                                  <option value="pappadeaux" disabled="disabled">Pappadeaux</option>
                                  <option value="luciles">Lucile's</option>
                            </optgroup>
                          </select>
                </div>
                  </form>
                  <div data-role="controlgroup" data-type="horizontal">
                    <a href="#" data-role="button">Yes</a>
                    <a href="#" data-role="button">No</a>
                    <a href="#" data-role="button">Cancel</a>
                  </div>
            </div>
            <footer data-role="footer"><h1>O'Reilly</h1></footer>
          </section>
          
    </body>
  </html>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.