<html>
<head>
<title>可输入字符进行下拉框筛选</title>
</head>
<script>
var presscount=0;
var pressvalue="";
var Select = {
showtext : function(obj,e){
presscount++;
var inputvalue=String.fromCharCode(e.charCode||e.which||e.keyCode);
pressvalue=pressvalue+inputvalue;
e.returnValue=false;
var comboxitems=obj.options;
for(var i=0;i<comboxitems.length;i++){
if(comboxitems[i].text.toUpperCase().indexOf(pressvalue.toUpperCase())==0){
comboxitems[i].selected="selected";
break;
}
}
},
clear : function(){
alert("已清空!");
presscount=0;
pressvalue="";
}
}
</script>
<body >
<select id="select" οnkeypress="Select.showtext(this,event);" οnchange="Select.clear();">
<option value=""></option>
<option value="CONVMAXULTXPWR">
CONVMAXULTXPWR
</option
<option value="DLBETRAFFTHSONHSDPA">
DLBETRAFFTHSONHSDPA
</option>
<option value="DLINTERFERERSV">
DLINTERFERERSV
</option>
<option value="DLSTRTHSONHSDPA">
DLSTRTHSONHSDPA
</option>
<option value="DWPCHPOWER">
DWPCHPOWER
</option>
<option value="EVENT4ATHD">
EVENT4ATHD
</option>
<option value="EVENT4BTHD">
EVENT4BTHD
</option>
<option value="HSSCCHBLER">
HSSCCHBLER
</option>
<option value="HSSICHACKNACKPO">
HSSICHACKNACKPO
</option>
<option value="HSSICHSIRTARGET">
HSSICHSIRTARGET
</option>
<option value="HSSICHTPCSTEPSIZE">
HSSICHTPCSTEPSIZE
</option>
<option value="HYSTFOR3A">
HYSTFOR3A
</option>
<option value="HYSTFORINTERCELL">
HYSTFORINTERCELL
</option>
<option value="IDLESSEARCHRAT">
IDLESSEARCHRAT
</option>
<option value="INITSIRTARGET">
INITSIRTARGET
</option>
<option value="MAXALLOWEDULTXPOWER">
MAXALLOWEDULTXPOWER
</option>
<option value="MAXDLTXPWR">
MAXDLTXPWR
</option>
<option value="MAXFACHPOWER">
MAXFACHPOWER
</option>
<option value="MAXFPACHPOWER">
MAXFPACHPOWER
</option>
<option value="MAXHSSICHPRXPWR">
MAXHSSICHPRXPWR
</option>
<option value="MAXSIRTARGET">
MAXSIRTARGET
</option>
<option value="MAXTXPOWER">
MAXTXPOWER
</option>
<option value="MINDLTXPWR">
MINDLTXPWR
</option>
<option value="MINHSSICHPRXPWR">
MINHSSICHPRXPWR
</option>
<option value="MINSIRTARGET">
MINSIRTARGET
</option>
<option value="N300">
N300
</option>
<option value="N302">
N302
</option>
<option value="N304">
N304
</option>
<option value="N308">
N308
</option>
<option value="N312">
N312
</option>
<option value="N313">
N313
</option>
<option value="N315">
N315
</option>
</select>
</body>
</html>