CodeToFun
Learn Programming Free
Tutorials
Languages
Features
About
Sign In
Tutorials
Languages
Features
About
Sign In
Back
/
jQuery .slideToggle() Method
jQuery .slideToggle() — accordion FAQ (Try It)
Try It
Run
Reset
Save
Save to Google Drive
Sync with your Google account
Download HTML
Save to your device
Share
Full
HTML Code
Copy
slideToggle accordion
What is jQuery .slideToggle()?
It displays or hides elements with a sliding height animation, picking slideDown or slideUp automatically.
When should I use it?
Use it for accordions, collapsible menus, and any UI that expands and collapses with one control.
Lines:
0
| Characters:
0
Live Preview
Auto-refresh on Run