-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactus.html
92 lines (82 loc) · 1.95 KB
/
contactus.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<title>TISSOT WATCHES :: Contact</title>
<meta charset="utf-8">
<link rel="stylesheet" href="tissotwatches.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
<header>
<h1>TISSOT WATCHES AND CO.</h1>
</header>
<nav>
<ul>
<li><a href="Homepage.html">Home</a></li>
<li><a href="About.html">About</a></li>
<li><a href="shopnow.html">Collection</a></li>
<li><a href="contactus.html">Contact Us</a></li>
</ul>
</nav>
<main><div id="xyz">
<h2><u>Contact Us</u></h2>
<h2>Your feedback is important to us!
<br>
Kindly leave us any message or open a ticket for support below!
</h2>
</div>
<form>
<input class="fin" required type="text" name="fname" id="fname" placeholder="First Name" >
<input class="fin" required type="text" name="lname" id="lname" placeholder="Last Name" >
<input
class="fin"
required
type="email"
name="num"
id="num"
placeholder="Email"
>
<textarea
required
class="fin"
name="query"
id="query"
cols="38"
rows="10"
placeholder="Enter your query"
></textarea>
<div id ="xyz">
<button type="button" onclick="sub()" id="sbmt">Submit</button>
<button type="reset" id="reset" onclick="reset()">Reset</button>
</div>
</form>
</main>
<script>
function sub() {
var x = document.getElementsByClassName('fin')
var count = 0;
for(let i = 0; i<x.length; i++)
{
if(x[i].value == ""){
count++
}
console.log(count)
}
if(count>0){
window.alert("Please enter all details before submitting!")
}
else{
window.alert("Form submitted, Thank you!")
}
}
</script>
<div class="clear">
<a id="mobile" href="tel:824-526-8843"><p>For further information you can call us at</p>(toll free-824-526-8843)</a><span id="desktop"></span><br><br>
</div>
<footer>
Copyright ©Tissot Watches and Co.
</footer>
</div>
</body>
</html>