0
我有jQueryUI對話框(彈出)。它有一些控制。我將輸入數據,然後點擊btnFindPerson並刷新btnAddNewPerson文本。但是,btnAddNewPerson文本無法不刷新,但不關閉彈出如何僅刷新jquery ui對話框組件中的按鈕文本
腳本:
function x() {
$("#dialog").dialog({
title: "jQuery Dialog Popup",
open: function (type, data) { $(this).parent().appendTo("form"); },
buttons: {
Close: function() {
$(this).dialog("destroy").remove();
}
}
});
}
HTML:
<input type="Button" name="name" title="ccc" value=" bbb" onclick="x();" />
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnFindPerson" EventName="Click" />
<asp:PostBackTrigger ControlID="btnAddNewPerson"/>
</Triggers>
<ContentTemplate>
<div id="dialog" style="display: none;">
This is a simple popup
<asp:Label Text="Ara:" runat="server" ID="x" />
<asp:TextBox ID="txtEnterPerson" runat="server" />
<asp:Button ID="btnFindPerson" Text="Bul" runat="server" OnClick="btnFindPerson_Click" />
<asp:Button ID="btnAddNewPerson" Text="Yeni Kişi Ekle" runat="server" />
</div>
</ContentTemplate>
</asp:UpdatePanel>