JQUERY toggle

Click Here

The toggle effect toggles between hide effect and show effect.

That is, if the item is hidden then show it.
And conversely, if visible, hidden.

Example JQUERY toggle

To hide an <p> element that is visible or hide a <p> element that is hidden

$("p").toggle();

It also allows the parameters include "speed" and "callback"


Click Here