I have code that uses jquery.slideup and jquery.slidedown
How can i know that div is hidden?
I have code that uses jquery.slideup and jquery.slidedown
How can i know that div is hidden?
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.
$('#id').is(':hidden'); //true if is hidden
$('#id').is(':visible'); //true if is visible
But you may want to use slideToggle for your needs.