简体   繁体   中英

jQuery UI Tab returns first tab

I've an asp:Button control in tabs-2. I'm inserting database something in onClick method, then it returns first tab but i want to open current tab. Also, page must be reload. How can i do ?

<asp:Button ID="btnAddContactKnowledge" CssClass="ButtonDefault" runat="server"    Text="add"  OnClientClick="ValidateContactKnowledge();" Width="120px" OnClick="btnAddContactKnowledge_Click" />

Consider using the cookie persistence feature of the JQuery UI Tabs widget. Enabling cookie persistence will cause the tab that was last selected to be selected automatically when the page is reloaded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM