源代码:
Click several times on each of the list items below:
Phil Dunphy
Luke Dunphy
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.
运行结果: