JS获取下拉框的值

来源:互联网 发布:php冒泡 编辑:程序博客网 时间:2024/06/02 07:05
//获取选择框的值
    var c=document.getElementById("select");
      yunsuan=c.options[c.selectedIndex].text;//或去被选中下拉框的文本


      //yunsuan=c.options[c.selectedIndex].value;//或去被选中下拉框的文本
0 0
原创粉丝点击