-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
166 lines (166 loc) · 4.79 KB
/
index.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Form DOM Manipulation</title>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<h1 id="title">Forms</h1>
<p id="description">DOM Manipulation with Forms</p>
<div class="container">
<div class="formContainer">
<form action="#" id="form" class="form">
<div class="form-group">
<input
type="text"
id="first-name"
name="First Name"
placeholder=" "
required
/>
<label for="firstName">First Name</label>
</div>
<div class="form-group">
<input
type="text"
placeholder=" "
id="last-name"
name="Last Name"
required
/>
<label for="lastName">Last Name</label>
</div>
<div class="form-group">
<input
type="text"
placeholder=" "
id="address"
name="Address"
required
/>
<label for="address">Address</label>
</div>
<div class="form-group">
<input
type="number"
id="pincode"
placeholder=" "
pattern="/[0-9]{0-6}/"
name="Pincode"
required
/>
<label for="Pincode">Pincode</label>
</div>
<div class="form-group select gender">
<label for="Gender">Gender</label>
<select id="gender" name="Gender">
<option value="">Gender</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="Others">Others</option>
</select>
</div>
<div class="form-group">
<input
type="text"
placeholder=" "
id="state"
name="State"
required
/>
<label for="state">State</label>
</div>
<div class="form-group">
<input
type="text"
placeholder=" "
id="country"
name="Country"
required
/>
<label for="country">Country</label>
</div>
<div class="form-group select food">
<label for="food" title="must select two">Choice of Food *</label>
<div class="row-checkBox">
<input
type="checkbox"
class="food"
name="food"
id="idli"
value="idli"
/>
<label for="idli">Idli</label>
</div>
<div class="row-checkBox">
<input
type="checkbox"
class="food"
name="food"
id="dosai"
value="dosai"
/>
<label for="dosai">Dosai</label>
</div>
<div class="row-checkBox">
<input
type="checkbox"
class="food"
name="food"
id="Vadai"
value="Vadai"
/>
<label for="Vadai">Vadai</label>
</div>
<div class="row-checkBox">
<input
type="checkbox"
class="food"
name="food"
id="Pongal"
value="Pongal"
/>
<label for="Pongal">Pongal</label>
</div>
<div class="row-checkBox">
<input
type="checkbox"
class="food"
name="food"
id="Briyani"
value="Briyani"
/>
<label for="Briyani">Briyani</label>
</div>
</div>
<div class="form-group button">
<button type="submit" id="submit" class="btn btn-primary">
Submit
</button>
</div>
</form>
</div>
<div id="tableContainer">
<table id="table" class="table">
<thead>
<tr>
<th>First name</th>
<th>Last Name</th>
<th>Address</th>
<th>Pincode</th>
<th>Gender</th>
<th>State</th>
<th>Country</th>
<th>Food</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
</table>
</div>
</div>
<script src="./js/script.js"></script>
</body>
</html>