Update create.php

This commit is contained in:
Jesse James Isler 2022-03-31 14:19:41 +02:00
parent aed401d5e0
commit 975d4a31f6

View File

@ -231,7 +231,8 @@
}
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))));
}