回发后消失div? [英] disappear div after postback?
本文介绍了回发后消失div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过点击以下链接显示使用jquery的面板
Hi,
show a panel using the jquery by click the below link
<a class="flip1" href="#" title="Comment" style="color:#CEF"><img src="/image/history-button.gif"/></a>
jquery如下,
the jquery as below,
$(document).ready(function () {
$(".flip1").click(function () {
$("#panel").slideToggle("slow");
});
});
点击更新面板内的其他按钮后,我的问题就消失了。
如何避免这种情况?
已添加代码块[/ Edit]
My problem is disappear the div when click other button inside a update panel.
how to avoid this?
Code block added[/Edit]
推荐答案
(document).ready(function() {
(document).ready(function () {
( 。flip1)。click(function(){
(".flip1").click(function () {
( #panel)。slideToggle( slow);
});
});
("#panel").slideToggle("slow"); }); });
点击更新面板内的其他按钮后,我的问题就消失了。
如何避免这种情况?
代码块添加[/编辑]
My problem is disappear the div when click other button inside a update panel.
how to avoid this?
Code block added[/Edit]
这篇关于回发后消失div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文