jQuery Effects: Hide/Show Image
jQuery toggle() method
The jQuery toggle() method toggles between hide() and show() for the selected elements.
.toggle() : This method signature was deprecated in jQuery 1.8 and removed in jQuery 1.9 . jQuery also provides an animation method named .toggle() that toggles the visibility of elements. Whether the animation or the event method is fired depends on the set of arguments passed.
jQuery hide() and show()
With jQuery , you can hide and show HTML elements with the hide() and show() methods: