hide/disaply button added

This commit is contained in:
2026-03-20 12:07:50 +10:00
parent 19e22c4235
commit 1121944fb1
2 changed files with 19 additions and 10 deletions

View File

@@ -26,4 +26,11 @@ const showTable = (idTable, data) => {
.enter()
.append("th")
.text(d => d);
}
}
const clearTable = (idTable) => {
const table = document.getElementById(idTable);
while (table.children.length > 0) {
table.removeChild(table.children[0]);
}
}