-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (45 loc) · 1.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Record Form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Admission Form</h1>
<form action="" id="studentForm">
<label for="name">Name : </label>
<input type="text" id="name" name="name" required><br><br>
<label for="name">Age : </label>
<input type="number" id="age" name="age" required><br><br>
<label for="class">Class : </label>
<input type="text" id="class" name="class" required><br><br>
<button type="submit">Submit</button>
</form><br><br>
<table id="studentTable">
<thead>
<td>Name</td>
<td>Age</td>
<td>Class</td>
<td>Action</td>
</thead>
<tbody>
</tbody>
</table>
<div id="editFormContent" class="hidden">
<h1>Edit Admission Form</h1>
<form action="" id="editStudentForm">
<input type="hidden" id="editIndex">
<label for="name">Name : </label>
<input type="text" id="editName" name="name" required><br><br>
<label for="name">Age : </label>
<input type="number" id="editAge" name="age" required><br><br>
<label for="class">Class : </label>
<input type="text" id="editClass" name="class" required><br><br>
<button type="submit">Update</button>
</form>
</div>
<script src="app.js"></script>
</body>
</html>