Jump to content

Jquery Slide Toggle Effect Customization


yooonpa

Recommended Posts

Hello guys, I would really appreciate if you guys can point out or help me with some minor customization on codes for  "Jquery Slide Toggle Effect" that can be seen here:

https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_slide_toggle

 

When you click on header or text or button whatsoever, a content will appear or display, it will also slide up when clicked back.

Now, I create a multiple section or toggle to display and hide, but the problem is the other toggles won't close automatically when I open other toggle.

Is there a way or some code to add so it closes the other toggles when you open up a new toggle?

Hope this is clear or please let me know if you guys need more information.

 

Thanks guys.

Lorienz

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...