开发者

jQuery slideUp div if already slided down?

I have a simple question about jquery slideDown, SlideUp. I'm using slideDown to slide a div on click, like

$("#box").slideDown("slow");
开发者_高级运维

How can I do it so that if the #box is already slided down, it should slide up by clicking again? Thanks.


use .slideToggle() instead

$("#box").slideToggle("slow");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜