I'm using
$('#analytics').toggle("slide");
to toggle an item's visibility. But when I try to check if it's visible using
$('#analytics').is(":visible")
It always shows up as visible once it was toggled visible once...
What is the best way of checking the item's visibility if it's controlled using jQuery toggle function?