js判断select列表并同时传值到input的text文本框中
by Fed json
HTML
<form name="form1">
<select name="menu1" onChange="document.form1.get.value=this.options[this.selectedIndex].value;if(this.options[this.selectedIndex].value == '请选择'){document.form1.get.value='';}">
<option selected>请选择</option>
<option value="百度">百度</option>
<option value="网易">网易</option>
<input type="text" value="" name="get" id="get">
</form>