<html>
<head>
<script type="text/javascript">
function formAction(){
var x=document.getElementById("aSelectControl")
x.remove(x.selectedIndex)
}
</script>
</head>
<body>
<form>
<select id="aSelectControl">
<option>Java</option>
<option>PHP</option>
<option>Perl</option>
</select>
<input type="button" onclick="formAction()" value="Remove option">
</form>
</body>
</html>
|