diff --git a/create.php b/create.php index b701111..8c8906b 100644 --- a/create.php +++ b/create.php @@ -232,9 +232,7 @@ function updateGoodRoles() { let goodRoles = document.getElementById('rolecolor').value; - console.log(goodRoles); - let x = document.createElement("LI").appendchild(document.createTextNode(element)); - goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendchild(x)); + goodRoles.forEach((element) => document.getElementById("tplaysbestwith").appendchild(document.createElement("LI").appendchild(document.createTextNode(element)))); } function updateDescription() {