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.

45 lines
2.1 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.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 checkboxes</h1>
  15. </div>
  16. <form action="wurst.php" method="get">
  17. <div data-role="fieldcontain">
  18. <label for="accept">I accept terms and conditions</label>
  19. <input type="checkbox" id="accept" name="accept" value="yes">
  20. </div>
  21. <legend>Delivery options</legend>
  22. <div data-role="controlgroup">
  23. <label for="optionGift">Pack it as a gift</label>
  24. <input type="checkbox" id="optionGift" name="optionGift" value="gift">
  25. <label for="optionBag">Send it with a bag</label>
  26. <input type="checkbox" id="optionBag" name="optionBag" value="bag">
  27. <label for="optionRemove">Remove the box</label>
  28. <input type="checkbox" id="optionRemove" name="optionRemove" value="remove">
  29. </div>
  30. <legend>Text format</legend>
  31. <div data-role="controlgroup" data-type="horizontal">
  32. <label for="bold">B</label>
  33. <input type="checkbox" id="bold" name="bold" value="bold">
  34. <label for="italic">I</label>
  35. <input type="checkbox" id="italic" name="italic" value="italic">
  36. <label for="underline">U</label>
  37. <input type="checkbox" id="underline" name="underline" value="underline">
  38. </div>
  39. <button type="submit" name="submit" value="submit-value">Submit</button>
  40. </form>
  41. <div data-role="footer">
  42. <h1>www.goodcleanfun.de</h1>
  43. </div>
  44. </div>
  45. </body>
  46. </html>