日期:2014-05-16  浏览次数:20567 次

DropDownList 绑定了value 和 text,用js :document.getElementById("DropDownList2").value; 可以取出value ,选中项的text 怎么取啊? - Web 开发 / Ajax
document.getElementById( "DropDownList2 ").text   不行!

------解决方案--------------------
document.getElementById( "DropDownList2 ").options[i].text取Text属性
document.getElementById( "DropDownList2 ").options[i].value取Value属性