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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:14:59+00:00 2026-06-12T20:14:59+00:00

I am using jQuery tabs like the following: http://jqueryui.com/tabs/ Where I can display a

  • 0

I am using jQuery tabs like the following:
http://jqueryui.com/tabs/
Where I can display a line of tabs along a top and the HTML is split into these sections and is seen by activating these tabs.

However I am not entirely satisfied with this feel.

As I have various Hrefs around the system that redirect to various places, I want to know if anyone knows if there is a way of being able to direct to a link to a page that displays these tabs, while opening the relevant tab from the URL or a different approach?

For example The simple way when you give a div an ID and can href to that ID and the page scrolls down to that point. With this you can specify in the URL which tab on the page you wish to go to. Although once combining it with jQuery, this is not possible.

  • 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-12T20:15:00+00:00Added an answer on June 12, 2026 at 8:15 pm

    Creating the Tabs
    All of our calls happen within document.ready() function.
    First we’ll create the tabs using the normal jQuery UI technique. In this case, we’ve wrapped the tabs ul and related divs in a div with a class of “tab-set”.

    $(".tab-set").tabs();
    

    Getting New Visitors to the Correct Tab
    Next, we want to see if we need to load a specific tab. We’ll check to see if the page we’re on has a “tab-set” div, and check the URL to see if there’s a hash on the end of it. If yes to both, then we use the scrollTo plugin to jump us down to the “tab-set” div — which keeps the tabs visible — while relying jQuery UI’s default behavior to show the correct tab content.

    if($(".tab-set") && document.location.hash){
      $.scrollTo(".tab-set");
    }
    

    Creating Bookmarkable URLs for the Tabs
    Once a user is on the page, we use the localScroll plugin to update the URL in the address bar while keeping the page from reloading.

    $(".tab-set ul").localScroll({ 
      target:".tab-set",
      duration:0,
      hash:true
    });
    

    What that says is “Scroll to the div ‘tab-set’ instead of the target of the link itself, do it with no animation, and add the hash to the URL”.
    That’s it! All requirements met.

    came from How to Open A specific Tab from Link in jQuery

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

Sidebar

Related Questions

I'm using jQuery Tabs UI with standard the tabs structure ( http://jqueryui.com/demos/tabs/ ). I
I am using jquery UI tabs I have three ajax tabs like so: <div
I'm using jQuery ui tabs with the following code but am having trouble adding
I am using the jQuery UI tabs like this: <ul style=background:none;> <li><a href=#tabs-1>Summary</a></li> <li><a
I have a problem , i'm using jQuery plugin from http://www.stilbuero.de/jquery/tabs/ , plugin for
I am using jQuery UI tabs to have a tab where I can search
Is jQuery only available in contentScripts? like tabs.activeTab.attach({ contentScript: 'jQuery(body).html(<img src=\'' + imgdata +
I'm using JQuery UI tabs with cookie like this. jQuery(document).ready(function() { jQuery(#tabs).tabs({cookie: { expires:
I am using JQuery Tabs and would like to change the pointer when I
I am working on a project and I am using jQuery Tabs like the

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.