Update create.php
This commit is contained in:
parent
cfb48db659
commit
aed401d5e0
@ -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))));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user