Update create.php

This commit is contained in:
Jesse James Isler 2022-03-31 14:00:50 +02:00
parent 28b4573b43
commit d41bea5e44

View File

@ -229,15 +229,9 @@
document.getElementById("thowtoplay").innerHTML = document.getElementById("howtoplay").value; document.getElementById("thowtoplay").innerHTML = document.getElementById("howtoplay").value;
} }
function createMenuItem(name) {
let li = document.createElement('li');
li.textContent = name;
return li;
}
function updateGoodRoles() { function updateGoodRoles() {
let goodRoles = document.getElementById('rolecolor').value; let goodRoles = document.getElementById('rolecolor').value;
goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendChild(createMenuItem(element))); goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendchild(document.createElement("LI")appendchild(.document.createTextNode(element)));
} }
function updateDescription() { function updateDescription() {