日期:2014-05-17 浏览次数:20806 次
<script type="text/javascript"> function change(value){ var mode = document.getElementById("mode"); if(value=="a"){ mode.value="1"; }else if(value=="b"){ mode.value="2"; }else if(value=="c"){ mode.value="3"; } } function change1(value){ var mode = document.getElementById("type"); if(value=="1"){ mode.value="a"; }else if(value=="2"){ mode.value="b"; }else if(value=="3"){ mode.value="c"; } } </script> <body> <div> <select id="type" name="type" onchange='change(this.value);'> <option value="a">a</option> <option value="b">b</option> <option value="c">c</option> </select> <select id="mode" name="mode" onchange='change1(this.value);'> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> </div> </body>