how to show hide with jquery

How To Show/Hide with jQuery

In this post I share with you how to show/hide an area with jQuery.

jQuery makes this super simple with the .toggle() method. This will simply toggle the visibility of the area back and forth to easily show then hide it. Also if you use the function .slideToggle(), you can apply a nice slide down animation during the reveal.

Here is an example showing you how to use jQuery to accomplish showing/hiding a div.

See the Pen
Click to Reveal — Show/Hide (jQuery)
by Steven Stromick (@sstromick)
on CodePen.

Leave a Reply

Your email address will not be published. Required fields are marked *