Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>My first jQuery Mobile code</title>
  6. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
  7. <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
  8. <script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. </head>
  11. <body>
  12. <div data-role="page" id="home">
  13. <div data-role="header">
  14. <h1>Form with non-native select multiple menu</h1>
  15. </div>
  16. <form action="wurst.php" method="get">
  17. <div data-role="fieldcontain">
  18. <label for="training">Training</label>
  19. <select id="training" name="training" data-native-menu="false" multiple>
  20. <option value="1">HTML5</option>
  21. <option value="2">jQuery Mobile</option>
  22. <option value="3">iOS</option>
  23. <option value="4">Android</option>
  24. <option value="5">Blackberry</option>
  25. <option value="6">Qt for Meego</option>
  26. </select>
  27. </div>
  28. <button type="submit" name="submit" value="submit-value">Submit</button>
  29. </form>
  30. <div data-role="footer">
  31. <h1>www.goodcleanfun.de</h1>
  32. </div>
  33. </div>
  34. </body>
  35. </html>