如何保持面板可见 [英] How do I keep my panel visible
本文介绍了如何保持面板可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在页面上使用了jquery面板,它使用了jquery的hide和slidetoggle功能。我在该面板上有一个按钮和一个网格控件,当我在文本框中输入数据时,我已经在按钮上发出查询,将该数据插入数据库并将该表与网格绑定,但是一旦我单击按钮面板消失了,请给我一些想法,使面板不会在按钮点击时消失。
以下是我的代码片段。
< script src = Scripts / jquery-1.7.2.min.js type = text / javascript > < / script >
< script 语言 = javascript type = text / javascript >
$(document).ready(function(){
$(#flip)。 click(function(){
$(#panel)。slideToggle(slow);
$(#panel1)。hide();
});
});
< / script >
确认活动
这是我的面板,其中包含按钮和Gridview控件。
解决方案
(document).ready(function(){
(#flip)。click(function(){
( #面板)的slideToggle( 慢);
I have used a jquery panel on my page which uses the hide and slidetoggle functions of jquery. I have a button on that panel and a grid control, as I enter the data in textbox I have given a query on the button to insert that data into the database and bind that table with grid, but as soon as I click the button the panel disappears, please give me some idea such that the panel doesn't disappear on button click.
following is my code snippet.
<script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("#flip").click(function () {
$("#panel").slideToggle("slow");
$("#panel1").hide();
});
});
</script>
Confirm Activity
This is my panel which contains the button and Gridview control.
解决方案
(document).ready(function () {
("#flip").click(function () {
("#panel").slideToggle("slow");
这篇关于如何保持面板可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文