jQuery中的Slidetoggle效果 [英] Slidetoggle effect in jquery

查看:84
本文介绍了jQuery中的Slidetoggle效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆