回帖后Jquery选项卡无法正常工作 [英] Jquery tab not working after post back
问题描述
我在asp.net应用程序中使用jquery选项卡,我在其中显示一些asp.net控件。出现的问题是,在我单击提交按钮后,选项卡控件停止工作并将标签显示为超链接。
这就是我制作标签的方式
$( function (){
$( #myTabs)。tabs();
});
这是我的HTML
< div id = myTabs >
< ul >
< ; li > < a href = #info > 我的信息< / a > < / li >
< li > < a href = #account > 我的帐户< / a > < / li >
< / ul >
< div < span class =code-attribute> id = info >
< / div >
< div id = account >
< / div >
< div >
这是我的提交按钮
< asp:按钮 runat = server ID = btnsave OnClick = btnsave_Click 文字 = 保存 / >
当我提交表单时,这两个锚点显示为普通锚点,开发人员工具中没有错误。
我尝试过:
我已经通过点击View source,Jquery,jquery ui查看了页面的来源,即使在回发后它的css引用仍然存在。
( function (){
( #myTabs)。tabs();
});
这是我的HTML
< div id = myTabs >
< ul >
< li > < a href = #info > 我的信息< / a > < / li >
< li > < a href = #account > 我的帐户< / a > < / li >
< / ul >
< div id = 信息 >
< / div >
< div id = account >
< / div < span class =code-keyword>>
< div >
这是我的提交按钮
< asp:按钮 runat = server ID = btnsave OnClick = btnsave_Click 文字 = 保存 / >
当我提交表单时,这两个锚点显示为普通锚点,开发人员工具中没有错误。
什么我试过了:
我已经通过点击View source,Jquery,jquery ui查看了页面的来源,它的css引用甚至在发回后
I am using jquery tab in asp.net application, I am displaying some asp.net controls in it. The problem arising is that after I click submit button,the tab control stops working and displays the tabs as hyperlink.
This is how I am making tabs
$(function () {
$("#myTabs").tabs();
});
This is my HTML
<div id="myTabs">
<ul>
<li><a href="#info">My Info</a></li>
<li><a href="#account">My Account</a></li>
</ul>
<div id="info" >
</div>
<div id="account">
</div>
<div>
This is my submit button
<asp:Button runat="server" ID="btnsave" OnClick="btnsave_Click" Text="Save" />
When I submit the form, These two anchors display as normal anchors and there is no error in developer's tool.
What I have tried:
I have checked the source of page by clicking View source, Jquery, jquery ui and its css reference is there even after post back.
(function () {
("#myTabs").tabs(); });
This is my HTML
<div id="myTabs"> <ul> <li><a href="#info">My Info</a></li> <li><a href="#account">My Account</a></li> </ul> <div id="info" > </div> <div id="account"> </div> <div>
This is my submit button
<asp:Button runat="server" ID="btnsave" OnClick="btnsave_Click" Text="Save" />
When I submit the form, These two anchors display as normal anchors and there is no error in developer's tool.
What I have tried:
I have checked the source of page by clicking View source, Jquery, jquery ui and its css reference is there even after post back.
这篇关于回帖后Jquery选项卡无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!