1 var ddlType = document.getElementById("<%=ddlType.ClientID %>"); //获取DropDownList控件
2 var type = ddlType.options[ddlType.selectedIndex].value; //获取选择项的值
1 var ddlType = document.getElementById("<%=ddlType.ClientID %>"); //获取DropDownList控件
2 var type = ddlType.options[ddlType.selectedIndex].value; //获取选择项的值