Edit The Code:
See Result »
Try it Yourself - ©
Click several times on each of the list items below:
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.