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

  • SEARCH
  • Home
  • 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 7024825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:53:35+00:00 2026-05-27T23:53:35+00:00

I am using JQuery Accordion and it works as it should and opens and

  • 0

I am using JQuery Accordion and it works as it should and opens and closes fine….BUT I want to add an accordion submenu and this doesn’t work nor styles either.

My libraries:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/start/jquery-ui.css" type="text/css" rel="Stylesheet" />

I added this test:

<p><a href="#">TEST MAIN MENU</a></p>
<div>

<h3><a href="#">Sub header</a></h3>
<div>sub content here</div>

</div>

and "Sub header" is not styled as a header nor it wraps up the div below it like "TEST MAIN MENU" does...

On the <head> I have this:

<script>
      $(function() {
            $( "#accordion" ).accordion({
                  active: false,
            autoHeight: false,
            collapsible: true,
            alwaysOpen: false
            });
      });

      function collapseAll() {
    $("#accordion")
        .filter(":has(.ui-state-active)")
        .accordion("activate", -1);
    $(".ui-accordion-header").blur();
}

</script>

All I need is to make "<h3><a href="#">Sub header</a></h3>" a collapsable div too.

  • 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-27T23:53:36+00:00Added an answer on May 27, 2026 at 11:53 pm

    If you want accordion within an accordion then this is your solution.

    By the way, when you say "#accordion" in js code, jQuery will try to find an element with id="accordion" and apply the styles to it. In the html that you have currently posted you have no such element.

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

Sidebar

Related Questions

I want to create multilevel accordion Navigation using jQuery , I tried using this
Ok an have an accordion, but i am not using jQuery UI. This is
I have this mockup page. The accordion works well but I would like to
I'm using JQuery 1.4.2 for an accordion effect on my website. All but one
I'm using jquery + the accordion plugin. That's working great. Now, I want another
I have tried using the accordion plugin, but it does not work, and I
I'm using both the jQuery UI accordion and the datepicker. The accordion works great,
I am working with jQuery UI Accordion and it works great, but I would
I'm using jQuery UI accordion() . I have 4 tabs. I want to make
I am using jQuery Accordion here and find some strange behavior when opening a

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.