Select没有办法传值给Text
如题
代码如下
<td> Vote Top1 Population Province: <input type= "text " name= "text " >
<td> <select
name= "select " size= "1 "
onChange= "text.value=this.options[this.selectedIndex].value; ">
<option selected> - - - - - - - </option>
<option value= "Beijing "> Beijing </option>
<option value= "Tianjing "> Tianjing </option>
<option value= "Shanghai "> Shanghai </option>
<option value= "Chongqing "> Chongqing </option>
<option value= "Hebei "> Hebei </option>
<option value= "Shanxi "> Shanxi </option>
</select>
------解决方案--------------------onChange= "text.value=this.options[this.selectedIndex].value; ">
-----------------------------------------------------
onChange= "document.formaaaa.text.value=this.options[this.selectedIndex].value; ">
formaaaa代表你的form名