<script type="text/javascript" language="javascript">
function submitData() {
var d = document.getElementById("<%=DropDownList1.ClientID %>");//根据DropDownList的客户端ID获取该控件
var typeValue = d.options[d.selectedIndex].value;//获取DropDownList当前选中值
alert(typeValue);//测试
}
}
</script>
原文地址:http://www.soaspx.com/dotnet/ajax/javascript/javascript_20100428_4075.html