ASP.Net中!用js怎么得到dropdownlist的selectedvalue?[在线等] document.getElementById("ddlLineStyle").value 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 dropdownlist其实就是selectdocument.getElementById("selectId").options[document.getElementById("selectId").selectedIndex].value; <body> <form id="form1" runat=server> <div> <asp:DropDownList ID="DropDownList1" runat=server > <asp:ListItem Value="a">a</asp:ListItem> <asp:ListItem Value="b">b</asp:ListItem> <asp:ListItem Value="c"></asp:ListItem> </asp:DropDownList></div> <input type=button value=test onclick="alert(document.getElementById('DropDownList1').value)" /> </form></body> easyui-datagrid 撤销修改问题 jQuery开发的组件,引用到同一实例 form的元素计算 急求解决页面嵌入方法(50分) jquery背景轮换问题?求解! js指定范围内变量 求助:要通过"身份证"显示"出生年月日"的问题该如何写此js? 不是高手别说话!!!IE全自动关闭! 问题! 请教:关于file协议的问题 easyui combobox下拉项限制问题 三级关联如何写? 求CTRL+ENTER提交表单代码
document.getElementById("selectId").options[document.getElementById("selectId").selectedIndex].value;
<form id="form1" runat=server>
<div>
<asp:DropDownList ID="DropDownList1" runat=server >
<asp:ListItem Value="a">a</asp:ListItem>
<asp:ListItem Value="b">b</asp:ListItem>
<asp:ListItem Value="c"></asp:ListItem>
</asp:DropDownList></div>
<input type=button value=test onclick="alert(document.getElementById('DropDownList1').value)" />
</form>
</body>