-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContactUS.HTML
More file actions
86 lines (82 loc) · 3.06 KB
/
ContactUS.HTML
File metadata and controls
86 lines (82 loc) · 3.06 KB
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
<!DOCTYPE html><html>
<head>
<link rel="stylesheet" href="StylesH.css">
<title>Contact us</title>
<meta charset="UTF-8" name="viewport">
<script src="Contact_Us.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="jquery-3.7.1.min.js"></script>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="Bank_home.HTML"> Home </a></li>
<li><a href="Mortgage_cal.HTML"> Mortgage calculator </a></li>
<li><a href="AboutUS.HTML"> About us </a></li>
<li><a href="ContactUS.HTML"> Contact us </a></li>
<li><a href="FAQ.HTML"> FAQ </a></li>
<li><a href="Services.HTML"> Services </a></li>
</ul>
</nav>
</header>
<br>
<section>
<img src="Logo.jpg" alt="Vashar Banking" class="logo">
<!-- <img src="hero.jpg" alt="hero" id="hero" class="hero"> -->
</section>
<section>
<body>
</body>
</section>
</body>
<section>
<body>
<h2>Contact us</h2>
<form action="ContactUS.HTML">
<label>Forename</label>
<br>
<input type="text" id="forename" required placeholder="Phoen">
<br>
<label >Surname</label>
<br>
<input type="text" id="surname" required placeholder="Vashar">
<br>
<label>Email</label>
<br>
<input type="email" id="em" required placeholder="example123@gmail.com">
<br>
<label>Subject </label>
<br>
<textarea id="msg" name="txtarea" placeholder="Your message" required></textarea>
<br>
<input type="submit" id="submit">
</form>
</body>
<script>
$(document).ready(function(){
$("#submit").click(function(event){
var em=$("#em").val();
var nam=$('#forename').val();
var snam=$('#surname').val();
var msg=$('#msg').val();
if (em === ""){
alert("Cannot have empty fields")
}
else if(nam===""){
alert("cannot have empty fields")
}
else if(msg===""){
alert("Cannot have empty fileds")
}
else if(snam===""){
alert("cannot have empty fields")
}
else{
alert("Your message has been sent")
}
})
});
</script>
</section>
</html>