I am designing a web page which goes like this:
<html>
<head>
<title>Bug UI</title>
</head>
<body>
<script>
function myfunc()
{
//what goes here??
}
</script>
<form>
<select name = "parameters">
<option value = "param1">Param 1</option>
<option value = "param2">Param 2</option>
<option value = "param3">Param 3</option>
<option value = "param4">Param 4</option>
<option value = "param5">Param 5</option>
</select>
<input type = "button" onclick = "myfunc()" value = "Submit">
</form>
</body>
</html>
It displays a drop-down box, when I select a value (say Param 1) from the box and click "Submit", I need to print the value (Param 1 in this case). How to achieve this?