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.

59 lines
3.0 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">
  9. $(document).bind('mobileinit', function () {
  10. $.mobile.pageLoadErrorMessage = "Fehler, Seite nicht gefunden";
  11. });
  12. </script>
  13. <script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script>
  14. <meta name="viewport" content="width=device-width, initial-scale=1">
  15. </head>
  16. <body>
  17. <div data-role="page" id="home">
  18. <div data-role="header">
  19. <h1>Form with various radio buttons</h1>
  20. </div>
  21. <form action="wurst.php" method="get">
  22. <legend>Menu type</legend>
  23. <div data-role="fieldcontain">
  24. <label for="menuNative1">Native menu, single selection</label>
  25. <input type="radio" id="menuNative1" name="menuType" value="1">
  26. <label for="menuNative2">Native menu, multiple selection</label>
  27. <input type="radio" id="menuNative2" name="menuType" value="2">
  28. <label for="menuNative3">Non-native menu, single selection</label>
  29. <input type="radio" id="menuNative3" name="menuType" value="3">
  30. <label for="menuNative4">Non-native menu, multiple selection</label>
  31. <input type="radio" id="menuNative4" name="menuType" value="4">
  32. </div>
  33. <legend>Menu type</legend>
  34. <div data-role="controlgroup">
  35. <label for="menuNative11">Native menu, single selection</label>
  36. <input type="radio" id="menuNative11" name="menuType1" value="1">
  37. <label for="menuNative21">Native menu, multiple selection</label>
  38. <input type="radio" id="menuNative21" name="menuType1" value="2">
  39. <label for="menuNative31">Non-native menu, single selection</label>
  40. <input type="radio" id="menuNative31" name="menuType1" value="3">
  41. <label for="menuNative41">Non-native menu, multiple selection</label>
  42. <input type="radio" id="menuNative41" name="menuType1" value="4">
  43. </div>
  44. <legend>Delivery method</legend>
  45. <div data-role="controlgroup" data-type="horizontal">
  46. <label for="delsel0">UPS</label>
  47. <input type="radio" id="delsel0" name="deltype" value="ups">
  48. <label for="delsel1">DHL</label>
  49. <input type="radio" id="delsel1" name="deltype" value="dhl">
  50. <label for="delsel2">FedEx</label>
  51. <input type="radio" id="delsel2" name="deltype" value=fedex>
  52. </div>
  53. <button type="submit" name="submit" value="submit-value">Submit</button>
  54. </form>
  55. <div data-role="footer">
  56. <h1>www.goodcleanfun.de</h1>
  57. </div>
  58. </div>
  59. </body>
  60. </html>