MarkHunte
(Mark Hunte)
4
JavaScript execution is normally so fast when hiding or showing elements that a simple hide All then show foo works.
Meaning you do not need to check if they are showing already, just hide All first and then show the ones you want.
Its that simple.
Have a look at