so easy 取文本框值,再赋值给下拉列表var myval=document.getElementById("port11").value;var myselect=document.getElementById("mySelect"); for(var i=1;i if(myselect.options[i].value==myval){myselect.options[i].selected = true;break;} }