Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1006705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:30:12+00:00 2026-05-16T08:30:12+00:00

I may be an idiot, but how do you keep multiple sections in jQuery

  • 0

I may be an idiot, but how do you keep multiple sections in jQuery UI’s accordion open? The demos all have only one open at a time… I’m looking for a collapseable menu type system.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:30:12+00:00Added an answer on May 16, 2026 at 8:30 am

    This was originally discussed in the jQuery UI documentation for Accordion:

    NOTE: If you want multiple sections
    open at once, don’t use an accordion

    An accordion doesn’t allow more than
    one content panel to be open at the
    same time, and it takes a lot of
    effort to do that. If you are looking
    for a widget that allows more than one
    content panel to be open, don’t use
    this. Usually it can be written with a
    few lines of jQuery instead, something
    like this:

    jQuery(document).ready(function(){
      $('.accordion .head').click(function() {
          $(this).next().toggle();
          return false;
      }).next().hide();
    });
    

    Or animated:

    jQuery(document).ready(function(){
      $('.accordion .head').click(function() {
          $(this).next().toggle('slow');
          return false;
      }).next().hide();
    });
    

    “I may be an idiot” – You’re not an idiot if you don’t read the documentation, but if you’re having problems, it usually speeds up finding a solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 508k
  • Answers 508k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I really doubt whether you need to call a new… May 16, 2026 at 4:16 pm
  • Editorial Team
    Editorial Team added an answer The user comments on the array_unique page do shed some… May 16, 2026 at 4:15 pm
  • Editorial Team
    Editorial Team added an answer .songTitle is a property on the returned object, so it's… May 16, 2026 at 4:15 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

This may seem weird but I have a problem in one of my programs
I may be way off base, but I've been trying all afternoon to run
I may be out of date, but one principle I adhere to is avoid
May be this is the basic Question. But i am not able to understand
This may be familiar to some. I have a wrapper class Ex that wraps
This may be a silly question with an obvious answer, but I've pondered it
I am extending my Object Property Value Diff but I realized if an object
I am probably making some silly mistake but I am newer to the world
I am looking for starting from scratch with a CMS - specifically one that
I'm really frustrated with this one. A few weeks ago I got it working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.