You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.2 KiB
48 lines
1.2 KiB
<!DOCTYPE html>
|
|
<head>
|
|
<script src="script.js"></script>
|
|
</head>
|
|
<body>
|
|
<button onclick="addStudent()">add student</button>
|
|
<br>
|
|
<form>
|
|
<label>enter student name</label>
|
|
<input type="text" id="findName"/>
|
|
<button id="editStudent" onclick="editData()">edit</button>
|
|
<button id="deleteStudent" onclick="deleteData()">delete</button>
|
|
</form>
|
|
<h1>students</h1>
|
|
<form id="add">
|
|
<label>name</label>
|
|
<input type="text" id="addName"/>
|
|
<label>weight</label>
|
|
<input type="text" id="addWeight"/>
|
|
<label>height</label>
|
|
<input type="text" id="addHeight"/>
|
|
<label>hair colour</label>
|
|
<input type="text" id="addHairColour"/>
|
|
<label>gpa</label>
|
|
<input type="text" id="addGpa"/>
|
|
<button id="submitStudent" onclick="addData()">submit</button>
|
|
</form>
|
|
|
|
<table id="studentInfo">
|
|
<tr>
|
|
<th>name</th>
|
|
<th>weight</th>
|
|
<th>height</th>
|
|
<th>hair colour</th>
|
|
<th>gpa</th>
|
|
</tr>
|
|
<tr>
|
|
<td id="sName"></td>
|
|
<td id="sWeight"></td>
|
|
<td id="sHeight"></td>
|
|
<td id="sHairColour"></td>
|
|
<td id="sGpa"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</body>
|
|
</html> |