<asp:DropDownList ID="DDL_VideoType" runat="server" AutoPostBack="false" onchange="Change();">
</asp:DropDownList>
<asp:DropDownList ID="DDL_VideoType1" runat="server" Visible="false">
</asp:DropDownList>
function Change()
{
alert("123");
var ss=$get("<%=DDL_VideoType.ClientID %>").value;
alert(ss);
}
</script>

本文介绍了一个使用 ASP.NET 的 DropDownList 控件的基本示例。通过两个 DropDownList 控件实现选择更改时触发 JavaScript 函数的功能,并展示了如何在客户端获取 DropDownList 的值。
353

被折叠的 条评论
为什么被折叠?



