<select name=select1>
<option value=1>1
<option value=2>2
<option value=3>3
</select>
<input type=text name=text1>
<input type=button onclick=indexOf()>
<script>
function indexOf(){
document.all.select1.value=document.all.text1.value
alert(document.all.select1.selectedIndex)
}
</script>
<option value=1>1
<option value=2>2
<option value=3>3
</select>
<input type=text name=text1>
<input type=button onclick=indexOf()>
<script>
function indexOf(){
document.all.select1.value=document.all.text1.value
alert(document.all.select1.selectedIndex)
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货