Update create.php
This commit is contained in:
parent
aed401d5e0
commit
975d4a31f6
@ -231,7 +231,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateGoodRoles() {
|
function updateGoodRoles() {
|
||||||
let goodRoles = document.getElementById('goodRoles').value;
|
let selected = document.querySelectorAll('#tplaysbestwith option:checked');
|
||||||
|
let goodRoles = Array.from(selected).map(el => el.value);
|
||||||
goodRoles.forEach((element) => document.getElementById("tplaysbestwith").appendchild(document.createElement("LI").appendchild(document.createTextNode(element))));
|
goodRoles.forEach((element) => document.getElementById("tplaysbestwith").appendchild(document.createElement("LI").appendchild(document.createTextNode(element))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user