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 8016123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:27:21+00:00 2026-06-04T20:27:21+00:00

I am trying to use Jquery UI accordion module to create a sidebar containing

  • 0

I am trying to use Jquery UI accordion module to create a sidebar containing categories of objects (headers) that when clicked display the sub-categories (contents).

The accordion itselfs works fine: when I click on a category, it displays a new section containing the links towards the different sub-categories’ pages BUT the links towards the main categories do not work anymore. I would like a click on a category to do TWO things: change the accordion appropriately AND open the link.

I have searched the web for 2 hours, and the only clue I found was to use a callback to the change event of the accordion, but I am extremely newbie in jQuery/Javascript, so I don’t know how to do this or if it’s the best option.

If I use "mouseover" to trigger the accordion, then everything works fine: the click event on a category is still opening the category page. Should I use mouseover or is there a solution using click as the event ? (the problem is that jquery generates a client-side event, whereas the link should generate a server-side event)

You can check what I mean live here (clicking on the "Media" in the left sidebar should open the sub-categories but also open the list of objects within the Media categories, whereas clicking on sub-menu "books" works fine).

Many thanks for any help!

  • 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-06-04T20:27:23+00:00Added an answer on June 4, 2026 at 8:27 pm

    Instead of using links in the accordion headers, use the accordion’s change event.

    http://jqueryui.com/demos/accordion/#event-change

    $( "#accordion" ).accordion({
        changestart: function (event, ui) {
            var href = ui.newHeader.attr( "href" );
            // do something with href
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use jQuery.scrollTo plugin with accordion (where one block expands after clicking
I'm trying to use jQuery's hover() to change the background color any TR that
am trying to use the Jquery accordion to show a list of links generated
I am a Jquery noob. I and am trying to create an accordion menu.
I am trying to use jQuery accordion widget. I want to use a common
Problem: I am trying to use knockout.js with jquery templates. The problem is that
I'm trying to use jQuery to access a DOM object that appears earlier in
i'm trying to use jquery to append an element to two places, but only
I am trying to use jquery-addresspicker with rails 3.1 but I am not able
I am trying to use jquery to search if one of the elements contains

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.