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.
Edit the code above and click "Submit Code" to see the result.
- Try it yourself