js获取服务器控件DropDownList所选中的各项属性

摘录网上:      

  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/p/2864997.html