用JS如何獲得DropDownList所選Text和Value?

Text

document.getElementById("DropDownListClientID").options[document.getElementById("DropDownListClientID").selectedIndex].text


Value

document.getElementById("DropDownListClientID").value
原文地址:https://www.cnblogs.com/star250/p/697822.html