js取得dropdownlist的text,value[转]
取DropDownList的Text内容:
document.getElementById("DropDownListClientID").options[document.getElementById("DropDownListClientID").selectedIndex].text
取DropDownList的Value内容:
document.getElementById("DropDownListClientID").options[document.getElementById("DropDownListClientID").selectedIndex].text
取DropDownList的Value内容:
document.getElementById("DropDownListClientID").value
document.getElementById("DropDownListClientID").options[document.getElementById("DropDownListClientID").selectedIndex].value