Update create.php

This commit is contained in:
Jesse James Isler 2022-03-31 10:58:15 +02:00
parent b69ffd1bef
commit 89d541e8ab

View File

@ -210,9 +210,9 @@
</div> </div>
</div> </div>
</div> </div>
<!-- Updatescript --> <!-- Updatescript -->
<script> <script>
function updateName() { function updateName() {
document.getElementById("cardname").innerHTML = $('#name').val(); document.getElementById("cardname").innerHTML = $('#name').val();
} }
@ -224,12 +224,12 @@
let li = document.createElement('li'); let li = document.createElement('li');
li.textContent = name; li.textContent = name;
return li; return li;
} }
function updateGoodRoles() {
function updateGoodRoles() {
goodRoles = $('#goodRoles').val(); goodRoles = $('#goodRoles').val();
goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendChild(createMenuItem(element)); ) goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendChild(createMenuItem(element)); )
); }
}
function updateDescription() { function updateDescription() {
document.getElementById("carddescription").innerHTML = $('#description').val(); document.getElementById("carddescription").innerHTML = $('#description').val();
} }