-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.html
More file actions
42 lines (41 loc) · 1.46 KB
/
table.html
File metadata and controls
42 lines (41 loc) · 1.46 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
<!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">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css">
<title>Document</title>
</head>
<body>
<div class="btn btn-primary" onclick='addRow()'>Add Row</div>
<div class="btn btn-primary" onclick='addCol()'>Add Column</div>
<div class="btn btn-primary" onclick='deleteRow()'>Delete Row</div>
<div class="btn btn-primary" onclick='deleteCol()'>Delete Column</div>
<div class="btn btn-primary" onclick='totalColRow()'>Print Total col & row</div>
<table class="table">
<thead>
<tr class="column-header">
<th scope="col">#</th>
<th scope="col">Item</th>
<div>
<th scope="col">Col1</th>
<th scope="col">Col2</th>
</div>
<th scope="col">Quantity</th>
<th scope="col">Rate</th>
<th scope="col">Amount</th>
</tr>
</thead>
<tbody class="table-row">
<!-- <tr>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td><input type="button" value="Delete" onclick="deleteRow(this)"></td>
</tr> -->
</tbody>
</table>
<script src="./assets/js/home.js"></script>
</body>
</html>