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