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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:13:52+00:00 2026-06-07T19:13:52+00:00

I have query regarding Accordion tabs .. I have used Accordion Menu plugin Below

  • 0

I have query regarding Accordion tabs ..

I have used Accordion Menu plugin Below code i have used for the tabs in the page .

  [accordions]
  [accordion title ="about"]**Content 1** [/accordion ]
  [accordion title="Home"]**Content 2** [/accordion ]
  [/accordions]

The web page looks like as follows:

enter image description here

I want first both these tabs to be collapsed and.When clicked on ABOUT it should expand and display the content .And once clicked on Home it should collapse ABOUT tab and expand the home page

By jquery i can achieve this but i dont know which script to download and work with it..

Any ideas??
Thanks in advance

  • 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-07T19:13:54+00:00Added an answer on June 7, 2026 at 7:13 pm

    I have two different methods for simple accordion; 1st with close button, 2nd is with hover trigger.

    1) Here is JsFiddle example with close button:

    jQuery:

    $('.content').slideUp(400);//reset panels
    
    $('.panel').click(function() {//open
       var takeID = $(this).attr('id');//takes id from clicked ele
       $('#'+takeID+'C').slideDown(400);
                                 //show's clicked ele's id macthed div = 1second
    });
    $('span').click(function() {//close
       var takeID = $(this).attr('id').replace('Close','');
       //strip close from id = 1second
        $('#'+takeID+'C').slideUp(400);//hide clicked close button's panel
    });​
    

    html:

    <div class="panel" id="panel1">panel1</div>
    <div id="panel1C">content1
      <span id="panel1Close">X</span>
    </div>
    <div class="panel" id="panel2">panel2</div>
    <div id="panel2C">content2
      <span id="panel2Close">X</span>
    </div>
    <div class="panel" id="panel3">panel3</div>
    <div id="panel3C">content3
      <span id="panel3Close">X</span>
    </div>
    

    ——-

    ​
    2) Here is JsFiddle example with hover trigger:

    $('.panel').hover(function() {
       var takeID = $(this).attr('id');//takes id from clicked ele
       $('.content').stop(false,true).slideUp(400);//close
       //used stop for prevent conflict
       $('#'+takeID+'C').stop(false,true).slideDown(400);//open
       //show's clicked ele's id macthed div
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query about transaction logs regarding sql server 2005-08. When is a
I have a query regarding the directory returned from Path.GetTempPath() function. It returns C:\Documents
I have a query regarding PLSQL exceptions and how to handle them in Java
I have a query here regarding the value given to the update attribute of
I have a few queries regarding columns in Postgres CSV Log. Query 1 Following
I have query regarding the disposing of an object. The scenario is as follows.
I have one query regarding the (UITextfield and Webservice) for example When i start
I have a query regarding showing a video (which is stored on server) on
I have a query regarding how delegates work. My understanding was that delegates take
I am using Struts 1 framework and i have a query regarding the logic:iterate

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.