<html>
<head>
<script type="text/javascript">
function open_alert()
{
var text=document.getElementById('alertmsg').selectedValue;
alert(text);
}
</script>
</head>
<body>
<select name="dropdown" id="alertmsg">
<option value="hello">Hello</option>
<option value="goodjob">it works</option>
</select>
<input type="button" value="See Alert from DropDown box" onclick="open_alert()">
</body>
</html>
Hij moet toch de selected value terug geven?