jQuery中的Slidetoggle效果 [英] Slidetoggle effect in jquery
问题描述
$(document).ready(function()
{
$([id $ = ImageButton1]).click(function(){
$(.ui-tabs).slideToggle();
});
});
正在使用上面的代码进行切换...
因此,当我单击按钮时,选项卡应根据其可见性隐藏或显示.
认为我的选项卡现在可见....如果我单击按钮,则选项卡会向上滑动,然后立即向下滑动.... i,为什么?
请帮我解决这个问题.
$(document).ready(function()
{
$([id$=ImageButton1]).click(function () {
$(.ui-tabs).slideToggle();
});
});
am using the above code for toggle...
so when i click the button ,tabs should hide or show according to its visiblity..
consider my tabs is visible now....if i click the button , my tabs are sliding up and immediately its sliding down....i dono why?
pls help me in this...............
推荐答案
([id
= ImageButton1]).click(function(){
=ImageButton1]).click(function () {
(.ui-tabs).slideToggle();
});
});
正在使用上面的代码进行切换...
因此,当我单击按钮时,选项卡应根据其可见性隐藏或显示.
认为我的选项卡现在可见....如果我单击按钮,则选项卡会向上滑动,然后立即向下滑动.... i,为什么?
请帮助我......
(.ui-tabs).slideToggle();
});
});
am using the above code for toggle...
so when i click the button ,tabs should hide or show according to its visiblity..
consider my tabs is visible now....if i click the button , my tabs are sliding up and immediately its sliding down....i dono why?
pls help me in this...............
这篇关于jQuery中的Slidetoggle效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!