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

        var ddl = document.getElementById("DropDownList1");
alert(ddl.selectedIndex);//选择索引值
alert(ddl.options[ddl.selectedIndex].value);//绑定值
alert(ddl.options[ddl.selectedIndex].text);//文本值
上一篇:读写CSV文件


下一篇:VB6.0和VB.Net的函数等对照表