DropDownList 绑定了value 和 text,用js :document.getElementById("DropDownList2&q

DropDownList 绑定了value 和 text,用js:document.getElementById(DropDownList2).value 可以取出value

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属性