slideDown() - prob with condition 'if' it's down or up
Hi
I'm using the following code to slide down a <div> that is display:none by default
I can make it silde down no problem
But I'd like to be able to "is()" to test if it is "down" or "up" so that I can either use "slideDown" or "slideUp" in the same function
- $("#desc-link").click(function(){
if ($("#desc-keys-div").is("down/up")) {
$("#desc-keys-div").slideDown("slow");
} else {
$("#desc-keys-div").slideUp("slow");
}
});
what do I need to do so that this works ??
thanks