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");
精彩评论