function changeSelected(selValue){
var obj=document.getElementById("selectname");
for (var i=0;i<obj.length;i++){ obj.options[i].selected=false;
if (obj.options[i].value==selValue){ obj.options[i].selected=true;
}
}
}
标签:function,javascript,obj,changeSelected,selected,var,下拉框
From: https://blog.51cto.com/u_2544485/7396862