用js 取出DropDownList 选中项的value 和 text,解决思路

用js 取出DropDownList 选中项的value 和 text,value是document.getElementById( ddlDept ).valuetext

用js 取出DropDownList 选中项的value 和 text,
value   是   document.getElementById( "ddlDept ").value;

text   属性怎么取?

[解决办法]
function GetValue()
{
var varIndex=document.getElementById( "ddlDept ").selectedIndex;

var varText=drpList.options[varIndex].text;
var varValue=drpList.options[varIndex].value;
}
[解决办法]
var DDl = document.getElementById( "ddlDept ");

DDl.options[Year.selectedIndex].value
DDl.options[Year.selectedIndex].text
[解决办法]
发错了,修正下
var DDl = document.getElementById( "ddlDept ");

DDl.options[DDl.selectedIndex].value
DDl.options[DDl.selectedIndex].text