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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:17:51+00:00 2026-05-15T21:17:51+00:00

I’ve got two pages — let’s call them page A and page B. Page

  • 0

I’ve got two pages — let’s call them page A and page B.

Page A has 4 links going to page B.

On page B I’ve got an accordion-styled grid — see http://css-tricks.com/examples/InfoGrid/

I’m trying to get it so if I click on one of the links on page A it will open one of the tabs on page B.

Can anyone help me?! Cheers.

  • 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-15T21:17:52+00:00Added an answer on May 15, 2026 at 9:17 pm

    On page A, give each of the links a hash value that will match an ID of each accordion item on page B.

    <a href='pageB.html#sectionOne'> Section One </a>
    <a href='pageB.html#sectionTwo'> Section Two </a>
    <a href='pageB.html#sectionThree'> Section Three </a>
    

    Then on page B, Give each accordion item that you would click an ID that matches the hash values above.

    (If one of them currently has an ID of “starter”, change it to the ID you intend to use.)

    <dt id="sectionOne" style="cursor: pointer; font-size: 14px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; ">
       Section One
    </dt>
    ...
    <dt id="sectionTwo" style="cursor: pointer; font-size: 14px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; ">
       Section Two
    </dt>
    ...
    <dt id="sectionThree" style="cursor: pointer; font-size: 14px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; ">
       Section Three
    </dt>
    

    Finally, in the infogrid.js file, replace this line:

    $("#starter").trigger("click");
    

    with this:

    $(window.location.hash).trigger("click");
    

    It will get the hash value from the location bar, and use it to trigger the click event on the proper accordion item.


    EDIT:

    As noted by @Tomas Lycken, you do probably want some default. You can either use the #starter ID provided ( then use that in the appropriate link ), or choose your own.

    If you wanted #sectionOne to be the default, you could do this:

    $( (window.location.hash || '#sectionOne') ).trigger("click");
    

    This will use the hash value if there is one, or #sectionOne if not.

    If you want to safeguard against invalid hash values, you could do this:

    var $viewAtPageLoad = $( window.location.hash ).trigger("click");
    
    if(!$viewAtPageLoad.length) {
        $('#sectionOne').trigger("click");
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

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.