<select name="sel" >
<option>菜单一</option>
<option>菜单二</option>
<option>菜单三</option>
</select>

 

<script language="javascript">
   function getselectvalue()
{
    var rtl=document.getElementById("rtl");

 //菜单一
    alert(rtl.options[0].value);

//菜单二    alert(rtl.options[1].value);

//菜单三
    alert(rtl.options[2value);

}
</script>

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2021-08-05
  • 2021-12-10
  • 2021-12-10
  • 2022-01-10
相关资源
相似解决方案