Html code:
Study World
- 1111111111
2222222222
- 333333333
- 4444444444
>- 6666666666< /li>
Jquery code:
First implementation method:
You can use show and hide provided by Jquery to complete the display and hide effects with easing. Since the two methods are similar, you can use toggle directly to complete.
toggle If there are two parameters and both are functions, it means the first Click to execute the first function, and click the second to execute the second function.