diff --git a/create.php b/create.php index db13d1b..1deaa38 100644 --- a/create.php +++ b/create.php @@ -231,9 +231,10 @@ function updateGoodRoles() { let goodRoles = document.getElementById('rolecolor').value; - goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendchild(document.createElement("LI")appendchild(.document.createTextNode(element))); + let x = document.createElement("LI").appendchild(document.createTextNode(element)); + goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendchild(x)); } - + function updateDescription() { document.getElementById("carddescription").innerHTML = document.getElementById("description").value; }