-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.js
More file actions
22 lines (21 loc) · 827 Bytes
/
contact.js
File metadata and controls
22 lines (21 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// get in touch form
function send() {
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
var password = document.getElementById("password").value;
var message = document.getElementById("message").value;
// form validation
if (name.length == "" || name.length <= 2) {
alert("Kindly Input Name!!!");
} else if
(email.length == "") {
alert("Please enter your email");
} else if
(password.length < 8) {
alert("Please enter your Password!");
} else if
(message.length == "") {
alert("Enter your message");
} else
alert("Dear " + name + " We have received your message" + " Thankyou so much for Reaching to Us. " + " We're committed to serving you anytime,anywhere.");
}