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.

39 lines
1.6 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>Simple form with field containers</h1>
  15. </div>
  16. <form action="wurst.php" method="get">
  17. <div data-role="fieldcontain">
  18. <label for="company">Company name:</label>
  19. <input type="text" id="company" name="company">
  20. </div>
  21. <div data-role="fieldcontain">
  22. <label for="email">Email:</label>
  23. <input type="email" id="email" name="email">
  24. </div>
  25. <div data-role="fieldcontain">
  26. <label for="search">Search:</label>
  27. <input type="search" id="search" name="search">
  28. </div>
  29. <div data-role="fieldcontain">
  30. <label for="comments">Your comments:</label>
  31. <textarea id="comments" name="comments"></textarea>
  32. </div>
  33. <button type="submit" name="submit" value="submit-value">Submit</button>
  34. </form>
  35. <div data-role="footer">
  36. <h1>www.goodcleanfun.de</h1>
  37. </div>
  38. </div>
  39. </body>
  40. </html>