jQuery slideToggle()

slideToggle() alternates between slideUp() and slideDown(), making it useful for expandable sections, simple disclosures, and show/hide panels.

slideToggle() Syntax Top ↑

$("#d1").slideToggle();

Use slideToggle() on Click Top ↑

$("#b2").on("click", function () {
    $("#d1").slideToggle();
});

Demo: slideToggle() →

Add a Duration Top ↑

$("#d1").slideToggle("slow");
$("#d1").slideToggle(500);

Demo: slideToggle() with different durations →

← Previous: slideUp() / slideDown() · jQuery Effects · Next: animate() →






plus2net.com



php designer

13-06-2017

Great tutorial. This tutorial was really helpful to known the slide toggle jquery function. Its helpful to beginners.
Thanks.



✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer