Grangler

Untitled

Apr 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Form choices</title>
  6. </head>
  7. <body>
  8.  
  9. <form>
  10. <fieldset>
  11. <legend>Theatre Booking</legend>
  12.  
  13.  
  14.  
  15. <label for="show">Show:</label>
  16. <select class="form-control calculate" id="show" name="show">
  17. <option data-price="79" value="Phantom" selected>
  18. Phantom of the Opera
  19. </option>
  20. <option data-price="85" value="Hamilton">Hamilton</option>
  21. <option data-price="67" value="Lion King">Lion King</option>
  22. <option data-price="83" value="Miss Saigon">Miss Saigon</option>
  23. </select>
  24. <p>Ticket Price: <span id="ticketPrice">79</span></p>
  25.  
  26. <p>
  27. <label for="seats">Seats</label>
  28. <input type="number" min="1" name="seats" id="seats" required autofocus/>
  29. </p>
  30.  
  31. <p>Discount: <span id="discountPercent">0%</span></p>
  32. </fieldset>
  33.  
  34.  
  35. <fieldset>
  36. <legend>Delivery Method</legend>
  37. <label for="e-ticket">
  38. <input type="radio" id="e-ticket" name="delivery" value="e-ticket" checked required> e-Ticket
  39. </label>
  40. <label for="box_office">
  41. <input type="radio" id="box_office" name="delivery" value="box_office">Box Office Collection
  42. </label>
  43. <label for="posted">
  44. <input type="radio" id="posted" name="delivery" value="posted">Posted
  45. </label>
  46. <p>Cost of Delivery: <span id="deliveryCost">Free</span></p>
  47. </fieldset>
  48.  
  49. <fieldset>
  50. <legend>Delivery Information</legend>
  51. <p>
  52. <label for="firstName">Firstname: </label>
  53. <input type="text" id="firstName" name="firstName" required>
  54. </p>
  55. <p>
  56. <label for="surname">Surname: </label>
  57. <input type="text" id="surname" name="surname" required>
  58. </p>
  59. <label for="textarea">Address:</label>
  60. <textarea rows="5" id="address" name="address"> </textarea>
  61.  
  62.  
  63. </fieldset>
  64.  
  65. <fieldset>
  66. <div class="form-control TotalPrices">
  67. <p>Total Price: <span id="totalPrice">0.00</span></p>
  68. </div>
  69. <div id="submit_wrapper">
  70. <input type="submit" id="submit" value="Book Tickets" />
  71. </div>
  72. </fieldset>
  73.  
  74. </form>
  75.  
  76. <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
  77. <script src="scripts/formChoice.js"></script>
  78. </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment