I’ve been coding with JQuery for a very long time, so I can’t believe I didn’t know this…
When I wanted to show/hide elements I would always use .is(:visible) and show or hide the object accordingly.
Yesterday, while looking for something else I found .toggle.
$(this).toggle(); //will show or hide an element
I imagine a lot of you are thinking, “Well yeah…”