<form action="" method="get"> 第一种写法: <select οnchange="this.form.id.value=this.value;this.form.code.value=this.options[this.selectedIndex].text;"> <option value="123">aaa</option> <option value="456">bbb</option> <option value="789">ccc</option> </select> <input type=text name=id value=""> <input type=text name=code value=""> 第二种写法: <select name="opt" οnchange="app.value=this.options[this.selectedIndex].name"> <option name="aaa" value="123">aaa</option> <option name="bbb" value="456">bbb</option> <option name="ccc" value="789">ccc</option> </select> <input name="app" type="hidden" value=""> </form>