<scriptlanguage="javascript">functiongetselectvalue(){varrtl1=document.getElementById("rtl1");alert(rtl1.options.(rtl1.selectedIndex).value);}functiongetOtherselectvalue(nIndex){if(nIndex!=''){document.getElementById("rtl2").selectedIndex=nIndex;document.getElementById("rtl3").selectedIndex=nIndex;}}</script>以楼上的数据来用<selectname="sel1"id="rtl1"><option>A</option><option>B</option><option>C</option></select><selectname="sel2"id="rtl2"><option>AA</option><option>BB</option><option>CC</option></select><selectname="sel3"id="rtl3"><option>AAA</option><option>BBB</option><option>CCC</option></select><inputtype="button"οnclick="getselectvalue()"value="弹出下拉列表的值"/>
阅读全文 >