Here is the code to get selected value from html tag select
<html>
<head>
<script type="text/javascript">
function update(hel) {
alert(document.getElementById(hel).value);
}
</script>
</head>
<body>
<select id="hello" onchange="update('hello')">
<option value="1ewe">Hello </option>
<option value="2www">Wodld</option>
<option value="3mmm">This is a test </option>
</select>
</body>
</html>
|