<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script language="javascript">
function aa() {
}
function pp(){
document.frmtest.seltest.options[i]=new
Option(ok=(document.frmtest.seltest.options[i])?document.frmtest.seltest.options[i].innerText+String.fromCharCode(event.keyCode):String.fromCharCode(event.keyCode),ok)
document.frmtest.seltest.selectedIndex=i;
}
function edit(){
if(document.frmtest.seltest.options[i]){
}
}
</script>
<body onload=aa();>
得到的数据:<%=request.form("seltest")%>
<form name=frmtest action=test.asp
method="POST">
<select onkeypress=pp() onkeyup="edit()"
name="seltest">
<option>测试程序</option>
<option>nanaka</option>
<option>zergman</option>
</select>
<input type=submit>
</form>
</body>
</html>