<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>

相关文章: