added some database work

This commit is contained in:
szabomarton 2024-12-03 11:17:19 +01:00
parent 0b28a908b1
commit 2926ad9619
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,9 @@
let tableSelectionDomElement = document.getElementById("tabla");
let selectedTable = "tagok";
tableSelectionDomElement.addEventListener("change", function (){
selectedTable = tableSelectionDomElement.value;
console.log(selectedTable);
});

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="root">
<label>Válaszd ki a táblát amit szerkeszteni szeretnél:</label>
<select name="tabla" id="tabla">
<option value="tagok">Tagok</option>
<option value="tagsag">Tagság</option>
<option value="jelenlet">Jelenlét</option>
<option value="esemenyek">Események</option>
<option value="visszajelzes">Visszajelzés</option>
</select>
<br>
</div>
<script src="index.js" defer></script>
</body>
</html>