Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
<select name="NaamVanJeSelect" onclick="document.getElementById('selectValue').value = this.value" onchange="document.getElementById('selectValue').value = this.value">
<option value="Waarde1">Waarde 1</option>
<option value="Waarde2">Waarde 2</option>
<option value="Waarde3">Waarde 3</option>
</select>
<input type="text" id="selectValue" value="" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Frisdrankautomaat</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<script type="text/javascript">
//<![CDATA[
function gekozen(){
var selected = document.getElementById('frisdrankkeuze').value;
document.getElementById('frisdrank').value = selected;
}
function wisResultaten(){
document.getElementById('frisdrank').value = "";
}
//]]>
</script>
</head>
<body>
<p class="centreren">FRISDRANKAUTOMAAT</p>
<form action="">
<table width="80%" border="1">
<tr>
<td rowspan="2">
<p>
Gebruiksaanwijzing:<br />
1. Kies de frisdrank<br />
2. Druk op de OK-knop
</p>
</td>
<td>
Kies de frisdrank:
<select name="frisdrankkeuze" id="frisdrankkeuze" onclick="wisResultaten();">
<option selected="selected">spuitwater</option>
<option>Cola</option>
<option>Fanta</option>
<option>chocolademelk</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<div>
<input type="button" id="OK" onclick="gekozen();" value="OK" />
</div>
</td>
</tr>
</table>
<table width="80%" border="0">
<tr>
<td>
<p class="centreren">
Frisdrank:
<input type="text" id="frisdrank" />
</p>
</td>
</tr>
</table>
</form>
</body>
</html>
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.