I make a drop down menu with names of games. I want whenever i click on any game name it's minimum system requirements show on
tag. I have 4 games in my menu.I don't know how to check which option is selected.Please can anyone help me to write code for just 1 game. HTML:
<html>
<body>
<form>
<label>Select Game</label>
<select id="game">
<option id="g1" value="COD">Call of duty</option>
<option id="g1" value="Fallout">Fallout 4</option>
<option id="g1" value="BioShock">BioShock Infinite</option>
<option id="g1" value="TheCrew">The Crew</option>
</select>
<input type="button" value="Select" onclick="details()">
</form>
<p id="demo"></p>
</body>
</html>
JS:
<script>
function details(){
}
</script>
Aucun commentaire:
Enregistrer un commentaire