//获取选择框的值
var c=document.getElementById("select");
yunsuan=c.options[c.selectedIndex].text;//或去被选中下拉框的文本
//yunsuan=c.options[c.selectedIndex].value;//或去被选中下拉框的文本
微信扫一扫
//获取选择框的值
var c=document.getElementById("select");
yunsuan=c.options[c.selectedIndex].text;//或去被选中下拉框的文本
//yunsuan=c.options[c.selectedIndex].value;//或去被选中下拉框的文本
相关推荐