简体   繁体   English

使用jQuery组合框时不触发SelectedIndexChanged

[英]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.

相关问题 ComboBox SelectedIndexChanged 事件未触发 - ComboBox SelectedIndexChanged event not firing SelectedIndexChanged不触发ComboBox - SelectedIndexChanged not firing for the ComboBox 以编程方式选择索引0(从-1)时,组合框未触发SelectedIndexChanged - Combobox not firing SelectedIndexChanged when programmatically selecting index 0 (from -1) 为Winform中的组合框选择OwnerDrawFixed模式时,不会触发SelectedIndexChanged事件 - SelectedIndexChanged event is not firing when OwnerDrawFixed mode selected for Combobox in Winform 填充时如何防止ComboBox触发另一个ComboBox的SelectedIndexChanged事件 - How to prevent a ComboBox from firing another ComboBox's SelectedIndexChanged event when filling it WinForms ComboBox SelectedIndexChanged在键入少量字符后跟Alt + Down时不触发 - WinForms ComboBox SelectedIndexChanged not firing when typing few chars followed by Alt+Down ComboBox SelectedIndexChanged - ComboBox SelectedIndexChanged 在进行下拉列表选择时,SelectedIndexChanged不会触发 - SelectedIndexChanged not firing when dropdownlist selection made 列表框SelectedValueChanged / SelectedIndexChanged在数据源更改时不触发 - ListBox SelectedValueChanged/SelectedIndexChanged not firing when data source changes 自定义UserControl中的SelectedIndexChanged未触发 - SelectedIndexChanged in Custom UserControl not firing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM