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.

54 lines
2.8 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 various radio buttons</h1>
  15. </div>
  16. <form action="wurst.php" method="get">
  17. <div data-role="fieldcontain">
  18. <legend>Menu type</legend>
  19. <label for="menuNative1">Native menu, single selection</label>
  20. <input type="radio" id="menuNative1" name="menuType" value="1">
  21. <label for="menuNative2">Native menu, multiple selection</label>
  22. <input type="radio" id="menuNative2" name="menuType" value="2">
  23. <label for="menuNative3">Non-native menu, single selection</label>
  24. <input type="radio" id="menuNative3" name="menuType" value="3">
  25. <label for="menuNative4">Non-native menu, multiple selection</label>
  26. <input type="radio" id="menuNative4" name="menuType" value="4">
  27. </div>
  28. <legend>Menu type</legend>
  29. <div data-role="controlgroup">
  30. <label for="menuNative11">Native menu, single selection</label>
  31. <input type="radio" id="menuNative11" name="menuType1" value="1">
  32. <label for="menuNative21">Native menu, multiple selection</label>
  33. <input type="radio" id="menuNative21" name="menuType1" value="2">
  34. <label for="menuNative31">Non-native menu, single selection</label>
  35. <input type="radio" id="menuNative31" name="menuType1" value="3">
  36. <label for="menuNative41">Non-native menu, multiple selection</label>
  37. <input type="radio" id="menuNative41" name="menuType1" value="4">
  38. </div>
  39. <legend>Delivery method</legend>
  40. <div data-role="controlgroup" data-type="horizontal">
  41. <label for="delsel0">UPS</label>
  42. <input type="radio" id="delsel0" name="deltype" value="ups">
  43. <label for="delsel1">DHL</label>
  44. <input type="radio" id="delsel1" name="deltype" value="dhl">
  45. <label for="delsel2">FedEx</label>
  46. <input type="radio" id="delsel2" name="deltype" value=fedex>
  47. </div>
  48. <button type="submit" name="submit" value="submit-value">Submit</button>
  49. </form>
  50. <div data-role="footer">
  51. <h1>www.goodcleanfun.de</h1>
  52. </div>
  53. </div>
  54. </body>
  55. </html>