diff --git a/assets/script.js b/assets/script.js index 1eb2e03..5c336c2 100644 --- a/assets/script.js +++ b/assets/script.js @@ -106,7 +106,9 @@ async function displayList(data, elementId, deleteFunction) { if ("function" === typeof deleteFunction) { const th = document.createElement("th"); - th.appendChild(document.createElement('')); + let deleteBtn = document.createElement('i'); + deleteBtn.classList = "ri-delete-bin-line"; + th.appendChild(deleteBtn); headerRow.appendChild(th); }