Here is my code
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"));
Where transfer_client is the div code:
<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>
I tried $("#dropDownID").chosen(), after dlg.parent().appendTo(jQuery("form:first"));
or before, but that does not make it searchable. But the code works fine when used without any dialogue. Any idea how to make it work inside the dialog?
Edit : Mark as resolved since it was an error in the js dialog box.
source
share