使用jquery组合框时不触发SelectedIndexChanged

时间:2014-01-27 01:58:19

标签: c# javascript jquery asp.net

我有一个ComboBox的表单,它提供了dropdownlist来自db的加载值。

现在问题是当我从组合框中选择一个值时,事件dllTest_SelectedIndexChanged没有从后面的代码中触发。

<asp:DropDownList ID="dllTest" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dllTest_SelectedIndexChanged">

我从jquery调用组合框

$("#<%=dllTest.ClientID%>").combobox();

1 个答案:

答案 0 :(得分:0)

尝试使用:

$('#dllTest').combobox();

而不是:

$("#<%=dllTest.ClientID%>").combobox();