Update create.php

This commit is contained in:
Jesse James Isler 2022-03-31 14:15:08 +02:00
parent cfb48db659
commit aed401d5e0

View File

@ -104,7 +104,7 @@
</div>
<div class="row">
<div class="input-field col s12">
<select id="goodRoles" onkeyup="updateCard()" multiple>
<select id="goodRoles" onchange="updateCard()" multiple>
<option value="" disabled> Choose your option </option>
<?php
$files = glob("roles/en/*.php");
@ -231,7 +231,7 @@
}
function updateGoodRoles() {
let goodRoles = document.getElementById('rolecolor').value;
let goodRoles = document.getElementById('goodRoles').value;
goodRoles.forEach((element) => document.getElementById("tplaysbestwith").appendchild(document.createElement("LI").appendchild(document.createTextNode(element))));
}