jquery, how to know div is hidden?

jquery

Solution

To see if an element is visible or not, you can use the visible selector with the is function:

$("#idElement").is(":visible") // true or false

But sounds to me like you want to toggle the slide effect, for that you can use the slideToggle function.

Problem

I have code that uses jquery.slideup and jquery.slidedown How can i know that div is hidden?

Original source