diff --git a/index.php b/index.php index 442a7a3..942876d 100644 --- a/index.php +++ b/index.php @@ -626,8 +626,18 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { document.addEventListener("click", e => { if (e.target.classList.contains("addTindakan")) { + // let row = document.querySelector(".tindakanRow").cloneNode(true) + let row = document.createElement("div") + row.classList.add("row", "my-2", "tindakanRow") + row.innerHTML = ` +
+ +
- let row = document.querySelector(".tindakanRow").cloneNode(true) +
+ +
+ ` document.getElementById("tindakanContainer").appendChild(row) }