thank you page and mail template
This commit is contained in:
@@ -89,6 +89,7 @@
|
||||
<!-- Input -->
|
||||
<input class="form-control" id="phn" type="number" name="telephone"
|
||||
placeholder="Enter your Contact number" required>
|
||||
<p id="phnError" style="color: red; display: none;">Enter a valid phone number</p>
|
||||
</div>
|
||||
<div class="form-group mb-5">
|
||||
<!-- Input -->
|
||||
@@ -507,10 +508,13 @@
|
||||
warning.style.display = "block";
|
||||
} else {
|
||||
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
|
||||
var mobile = /^\d{10}$/;
|
||||
|
||||
if (reg.test(email) == false) {
|
||||
emailError.style.display = "block";
|
||||
} else {
|
||||
}else if (mobile.test(phn) == false) {
|
||||
phnError.style.display = "block";
|
||||
} else {
|
||||
emailError.style.display = "none";
|
||||
warning.style.display = "none";
|
||||
let formData = new FormData();
|
||||
@@ -544,6 +548,7 @@
|
||||
// window.location.href = "contact-back";
|
||||
}
|
||||
);
|
||||
window.open("thank-you.html");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user