從jQuery UI現在可以申請.button()
一個錨,一個按鈕,提交按鈕等 我有一個簡單的asp.net按鈕,看起來像這樣:點擊ASP.NET按鈕時jQuery「.button」裝飾會消失嗎?
<asp:Button ID="btnFindSearch" runat="server" Text="Search"
onclick="btnFindSearch_Click" />
然而裏面像這樣一個UpdatePanel的:
<div id="dialog" title="Select Address">
<asp:UpdatePanel ID="upNewUpdatePanel" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
<ContentTemplate>
<div id="search" style="width:100%; text-align:center;">
<asp:TextBox ID="txtFindSearch" runat="server"></asp:TextBox>
<asp:Button ID="btnFindSearch" runat="server" Text="Search"
onclick="btnFindSearch_Click" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
在我的jQuery我可以這樣做:
$('#btnFindSearch').button();
它給了我一個按鈕的jQuery UI外觀...真棒我想。但是,當我點擊我的按鈕時,按鈕返回到普通的舊的asp.net服務器按鈕。它就好像.button()
不再適用。
這是由於它是在一個UpdatePanel內或者什麼可能導致這種事實?
這裏是.button的jQuery UI的文檔以及http://jqueryui.com/demos/button/ – oJM86o 2012-04-22 22:28:27