Edit This Code:
See Result »
Click me.
Note:
The toggle() method was deprecated in jQuery version 1.8, and removed in version 1.9. We have used an earlier version of jQuery (1.8 in the script tag), for this example to work.
Result: