摘录网上:
var ddl = document.getElementById(“DropDownList1”);
alert(ddl.selectedIndex);//选择索引值
alert(ddl.options[ddl.selectedIndex].value);//绑定值
alert(ddl.options[ddl.selectedIndex].text);//文本值
转载于:https://www.cnblogs.com/fuge/archive/2013/01/17/2864997.html
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/181276.html原文链接:https://javaforall.net
