gpt4 book ai didi

jquery - 选择的搜索不适用于 Jquery 对话框。为什么?

转载 作者:行者123 更新时间:2023-12-01 01:27:08 25 4
gpt4 key购买 nike

这是我的代码

  var dlg = $("#transfer_client").dialog({
dialogClass: "templateDialog",
autoOpen: false,
modal: true,
zIndex: 1500,
height: 200,
width: 200,
title: "Transfer Campaign to a different Client"
});

dlg.parent().appendTo(jQuery("form:first"));

其中transfer_client是div代码是:

 <div id="transfer_client" class="dialog position" title="Transfer to a different Client">
<span>Client:</span>
<asp:DropDownList runat="server" Height="30px" ID="ddlClients" DataTextField="ClientName"
DataValueField="ClientID">
</asp:DropDownList>
<br />
<br />
<asp:Button runat="server" OnClientClick="return confirmSubmit();" ID="btnTranfer"
Text="Transfer" OnClick="btnTranfer_Click" />
</div>

我已经尝试过$("#dropDownID").chosen() ,之后 dlg.parent().appendTo(jQuery("form:first"));或之前,但它不会使其可搜索。但在没有任何对话框的情况下使用该代码可以正常工作。知道如何让它在对话框中工作吗?

编辑:标记为已解决,因为这是对话框 js 中的错误。

最佳答案

你看过issue #18 on github吗? ?

它解决了我的类似问题,基本上归结为增加搜索框的 CSS z-index

关于jquery - 选择的搜索不适用于 Jquery 对话框。为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10329196/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com