-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (54 loc) · 2.23 KB
/
index.html
File metadata and controls
67 lines (54 loc) · 2.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Survey Form</title>
</head>
<body>
<div class="survey-form">
<form id="surveyForm" onsubmit="submitForm(); return false;">
<label for="firstName">First Name:</label>
<input type="text" id="firstName" required>
<label for="lastName">Last Name:</label>
<input type="text" id="lastName" required>
<label for="dob">Date of Birth:</label>
<input type="date" id="dob" required>
<label for="country">Country:</label>
<select id="country" required>
<option value="usa">INDIA</option>
<option value="canada">Canada</option>
<option value="uk">UK</option>
<option value="usa">USA</option>
<option value="australia">Australia</option>
<option value="newzealand">New Zealand</option>
<option value="other">Other</option>
</select>
<label>Gender:</label>
<label for="male">Male</label>
<input type="checkbox" id="male" name="gender">
<label for="female">Female</label>
<input type="checkbox" id="female" name="gender">
<label for="profession">Profession:</label>
<input type="text" id="profession" required>
<label for="email">Email:</label>
<input type="email" id="email" required>
<label for="mobile">Mobile Number:</label>
<input type="tel" id="mobile" required>
<div class="buttons">
<button type="submit" class="submit__btn">Submit</button>
<button class="reset__btn" type="button" onclick="resetForm()">Reset</button>
</div>
</form>
</div>
<div id="popup" class="popup">
<div class="popup-content">
<span class="close" onclick="closePopup()">×</span>
<h2>Survey Form Submission</h2>
<div id="popupResult"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>