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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:34:36+00:00 2026-05-27T02:34:36+00:00

<div id=tabs class=htabs> <a href=#tab-description><?php echo $tab_description; ?></a> <a href=#tab-attribute><?php echo $tab_attribute; ?></a> <a

  • 0
<div id="tabs" class="htabs">
<a href="#tab-description"><?php echo $tab_description; ?></a>
<a href="#tab-attribute"><?php echo $tab_attribute; ?></a>
<a href="#tab-review"><?php echo $tab_review; ?></a>
<a href="#tab-related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
</div>

When I click this link, for example: .../product_id=40 by default the #tab-description is opened. How can I call #tab-review via URL to be opened first, i.e. if I enter the URL to be something like this: .../product_id=40#tab-review the #tab-review to be opened?

Thanks in advance.

EDIT: Here is the tabs.js content, and the path to this file is: …/catalog/view/javascript/jquery/tabs.js

$.fn.tabs = function() {
var selector = this;

this.each(function() {
    var obj = $(this); 

    $(obj.attr('href')).hide();

    $(obj).click(function() {
        $(selector).removeClass('selected');

        $(selector).each(function(i, element) {
            $($(element).attr('href')).hide();
        });

        $(this).addClass('selected');

        $($(this).attr('href')).fadeIn();

        return false;
    });
});

$(this).show();

$(this).first().click();
};
  • 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-27T02:34:37+00:00Added an answer on May 27, 2026 at 2:34 am

    Are you using jQuery? You could put this in a ready listener:

    $(document).ready(function() {
        if(window.location.hash.length > 1) {
            $('a[href="' + window.location.hash + '"]').click();
        }
    });
    

    If you’re not using jQuery, I’ll need some more information…

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

Sidebar

Related Questions

HTML: <div class=tabbed-section> <ul class=tabs> <li><a href=#tab-1>Tab 1</a><li> <li><a href=#tab-2>Tab 2</a><li> </ul> <div id=tab-1
I have 3 html box as follow: <div class=tabs> <ul class=tabNav> <li><a href=#video>Video Gallery</a></li>
I need some help...I did the follow: <div class=tabs> <ul> <li><a id=tb-1 position=1 href=tabs-1>
<div class=tabs> <ul> <li class=active><span class=l></span><a href=#>Standard Class</a><span class=r> </span></li> <li><span class=l></span><a href=#>Bussiness Class</a><span
With this code: <ul class=tabs-nav role=tablist > <li role=tab><a href=#newspane id=tab-newnews>Latest News</a></li> <li role=tab><a
I am using jQuery UI Tabs . <div id=tabs> <ul id=tablist> <li><a href=#fragment-1><span>One</span></a></li> </ul>
ok so basically I have this: <div id=tabs> <div id=unique_id class=tab_link onclick=changeTab(this);> <div id=tab_link_image
This is my tabbed interface, I have a jsfiddle here . <div class=tabs> <!--
this is my code : <div id=test style=width:200px;height:100px;background:red class=tabs change_font_size> <div> <a class=delete style=float:right;font-size:20px;text-decoration:underline;cursor:pointer;>delete</a>
I am using jquery UI tabs I have three ajax tabs like so: <div

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.