Update create.php
This commit is contained in:
parent
28b4573b43
commit
d41bea5e44
@ -229,15 +229,9 @@
|
||||
document.getElementById("thowtoplay").innerHTML = document.getElementById("howtoplay").value;
|
||||
}
|
||||
|
||||
function createMenuItem(name) {
|
||||
let li = document.createElement('li');
|
||||
li.textContent = name;
|
||||
return li;
|
||||
}
|
||||
|
||||
function updateGoodRoles() {
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user