form validation rebase with master branch
This commit is contained in:
commit
67da917bf3
3 changed files with 28 additions and 13 deletions
|
@ -78,9 +78,8 @@ hr {
|
||||||
/* margin: 100px auto; */
|
/* margin: 100px auto; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h2:hover {
|
||||||
h2:hover{
|
color: #72a7b3
|
||||||
color:#72a7b3
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -263,6 +262,11 @@ input:invalid+span:after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: '✖';
|
content: '✖';
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
|
<<<<<<< HEAD
|
||||||
|
}
|
||||||
|
|
||||||
|
input:valid+span:after {
|
||||||
|
=======
|
||||||
}
|
}
|
||||||
|
|
||||||
input:valid+span:after {
|
input:valid+span:after {
|
||||||
|
@ -272,13 +276,14 @@ input:valid+span:after {
|
||||||
}
|
}
|
||||||
|
|
||||||
.errorMsg {
|
.errorMsg {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.accountLabel {
|
.accountLabel {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Footer section */
|
/* Footer section */
|
||||||
|
|
||||||
#footer {}
|
#footer {}
|
||||||
|
@ -287,6 +292,14 @@ input:valid+span:after {
|
||||||
margin: 20px 10px;
|
margin: 20px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.res {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rec {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1028px) {
|
@media (max-width: 1028px) {
|
||||||
#title {
|
#title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
13
index.html
13
index.html
|
@ -296,14 +296,15 @@
|
||||||
<h2 class="big-heading"> <i class="far fa-clock"></i> Book an Appointment </h2>
|
<h2 class="big-heading"> <i class="far fa-clock"></i> Book an Appointment </h2>
|
||||||
<br>
|
<br>
|
||||||
<!-- Accordion for booking a service-->
|
<!-- Accordion for booking a service-->
|
||||||
<form method="post" id="contactForm">
|
<!-- -->
|
||||||
|
<form id="contactForm" method="post">
|
||||||
|
|
||||||
<div id="accordion">
|
<div id="accordion">
|
||||||
<!-- Service Accordion -->
|
<!-- Service Accordion -->
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header" id="headingOne">
|
<div class="card-header" id="headingOne">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
<button type="button" class="btn btn-link" data-toggle2= "tooltip" data-placement="top" title="Book services by clicking this button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
||||||
Book Services
|
Book Services
|
||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
|
@ -319,7 +320,7 @@
|
||||||
<option value="1">Brake Repair</option>
|
<option value="1">Brake Repair</option>
|
||||||
<option value="2">Fixing Punctures</option>
|
<option value="2">Fixing Punctures</option>
|
||||||
<option value="3">Full Repair/Maintenance</option>
|
<option value="3">Full Repair/Maintenance</option>
|
||||||
<option value="3">Other Inquiries</option>
|
<option value="4">Other Inquiries</option>
|
||||||
</select>
|
</select>
|
||||||
<span id="serviceError" class="errorMsg"></span>
|
<span id="serviceError" class="errorMsg"></span>
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -357,7 +358,7 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header" id="headingTwo">
|
<div class="card-header" id="headingTwo">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
<button type="button" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
<button type="button" class="btn btn-link collapsed" data-tooltip= "tooltip" data-placement="top" title="Access payment by clicking this button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
||||||
Payment Details
|
Payment Details
|
||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
|
@ -427,15 +428,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- </form> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<!--<input type="submit" value="Submit"> -->
|
<button type="button" class="btn btn-lg btn-outline-success" id="submitButton" onclick="validateForm()">Submit</button>
|
||||||
<button type="button" class="btn btn-lg btn-outline-secondary" id="submitButton" onclick="validateForm()">Submit</button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -136,4 +136,7 @@ function validateForm() {
|
||||||
} else {
|
} else {
|
||||||
$("#cvvError").html("");
|
$("#cvvError").html("");
|
||||||
}
|
}
|
||||||
|
//after all the test pass submit the form and reset.
|
||||||
|
contactForm.reset();
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue