[英]Not firing the SelectedIndexChanged when using jquery combobox
I have a form with a ComboBox
that provides a dropdownlist
with loaded values from db. 我有一个带有
ComboBox
的表单,该表单提供了一个从数据库中加载值的dropdownlist
。
Now the problem is when I am selecting a value from the combobox, the event dllTest_SelectedIndexChanged is not firing from code behind. 现在的问题是,当我从组合框中选择一个值时,事件dllTest_SelectedIndexChanged没有从后面的代码中触发。
<asp:DropDownList ID="dllTest" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dllTest_SelectedIndexChanged">
and I am calling the combobox from a jquery 我从一个jQuery调用组合框
$("#<%=dllTest.ClientID%>").combobox();
Try to use: 尝试使用:
$('#dllTest').combobox();
instead of: 代替:
$("#<%=dllTest.ClientID%>").combobox();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.