Guest User

Untitled

a guest
Nov 14th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. <!--Début du CONTACT-->
  2. <div class="container">
  3. <div class="contact" id="for-more-information">
  4. <p><b>FOR MORE INFORMATION</b></p>
  5. <form class="needs-validation" novalidate>
  6. <div class="form-row">
  7. <div class="col-md-4 mb-3">
  8. <label for="validationCustom01">First name</label>
  9. <input type="text" class="form-control" id="validationCustom01" placeholder="First name" required>
  10. <div class="valid-feedback">
  11. Looks good!
  12. </div>
  13. </div>
  14. <div class="col-md-4 mb-3">
  15. <label for="validationCustom02">Last name</label>
  16. <input type="text" class="form-control" id="validationCustom02" placeholder="Last name" required>
  17. <div class="valid-feedback">
  18. Looks good!
  19. </div>
  20. </div>
  21. <div class="col-md-4 mb-3">
  22. <label for="validationCustomUsername">Username</label>
  23. <div class="input-group">
  24. <div class="input-group-prepend">
  25. <span class="input-group-text" id="inputGroupPrepend">@</span>
  26. </div>
  27. <input type="text" class="form-control" id="validationCustomUsername" placeholder="Username" aria-describedby="inputGroupPrepend" required>
  28. <div class="invalid-feedback">
  29. Please choose a username.
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="form-row">
  35. <div class="col-md-6 mb-3">
  36. <label for="validationCustom03">City</label>
  37. <input type="text" class="form-control" id="validationCustom03" placeholder="City" required>
  38. <div class="invalid-feedback">
  39. Please provide a valid city.
  40. </div>
  41. </div>
  42. <div class="col-md-3 mb-3">
  43. <label for="validationCustom04">State</label>
  44. <input type="text" class="form-control" id="validationCustom04" placeholder="State" required>
  45. <div class="invalid-feedback">
  46. Please provide a valid state.
  47. </div>
  48. </div>
  49. </div>
  50. <div class="form-row ">
  51. <br><div class="form-group col-md-4 col form-row">
  52. <br> <label for="inputoption">Whatever</label>
  53. <select id="inputoption" class="form-control ">
  54. <option selected>Choose...</option>
  55. <option>Wedding</option>
  56. <option>Baby Shower</option>
  57. <option>Birthday Parties</option>
  58. <option>Parties</option>
  59. <option>Funerals</option>
  60. <option>Other</option>
  61. </select>
  62. <label for="inputwhere">Wherever</label>
  63. <input id="inputwhere"type="text" class="form-control" placeholder="Where">
  64. <label for="inputwhenever">Whenever</label>
  65. <input id="inputwhenever" type="text" class="form-control" placeholder="DD/MM/YY">
  66. <div class="form-group" >
  67. <label for="comment">If it's an Other Event please describ it bellow</label>
  68. <textarea class="form-control" id="comment" rows="3"></textarea>
  69. </div>
  70. </div>
  71. </div>
  72. <div>
  73. <button class="btn-purple" type="submit">Submit</button>
  74. </div>
  75. </form>
  76.  
  77. <script>
  78. // Example starter JavaScript for disabling form submissions if there are invalid fields
  79. (function() {
  80. 'use strict';
  81. window.addEventListener('load', function() {
  82. // Fetch all the forms we want to apply custom Bootstrap validation styles to
  83. var forms = document.getElementsByClassName('needs-validation');
  84. // Loop over them and prevent submission
  85. var validation = Array.prototype.filter.call(forms, function(form) {
  86. form.addEventListener('submit', function(event) {
  87. if (form.checkValidity() === false) {
  88. event.preventDefault();
  89. event.stopPropagation();
  90. }
  91. form.classList.add('was-validated');
  92. }, false);
  93. });
  94. }, false);
  95. })();
  96. </script>
  97. </div>
  98. </div>
  99. <!--Fin du contact-->
Add Comment
Please, Sign In to add comment