我有2个ASP:带有OnSelectedIndexChanged属性的DropdownLists。当这被触发时,我想运行一个让用户知道数据正在处理的jquery函数。如何跳转到我的jQuery函数,并有没有办法使用唯一的ID?如何用下拉列表触发Jquery函数?
<asp:DropDownList ID="ddlFirst" runat="server" OnSelectedIndexChanged="ddlChange">
<asp:ListItem>All</asp:ListItem>
<asp:ListItem>None</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlSecond" runat="server" OnSelectedIndexChanged="ddlChange">
<asp:ListItem>All</asp:ListItem>
<asp:ListItem>None</asp:ListItem>
</asp:DropDownList>
$(document).ready(function() {
$("???").change(function() {
//code
});
});
愚蠢的我...我有班,但'#',而不是'。'再次感谢。 – MrM 2011-02-15 14:56:25