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

The Archive Base Latest Questions

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

Stackoverflow, I am working with the Tabs via the Jquery Tools: Tabs system and

  • 0

Stackoverflow,

I am working with the Tabs via the Jquery Tools: Tabs system and cannot seem how to figure out how to add the CURRENT class to a list item that IS NOT the first item in the list without the class being applied to both the first item and whatever LIST ITEM I throw it on… Any ideas anyone?

http://flowplayer.org/tools/demos/tabs/index.html

Thank you very much,
Aaron

EDIT:
I do not have the JavaScript/jQuery Code for the jQuery Tools: Tabs System… Because I am calling it from CDN:

http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js

But.

This is what I have in HTML.

<ul class="tabs">
    <li><a href="#">First</a></li>
    <li><a href="#">Second</a></li>
    <li><a href="#">Third</a></li>
    <li><a href="#">Fourth</a></li>
    <li><a href="#">Fifth</a></li>
  </ul>

If I can explain it a little more better it would have to be something like this:
The jQuery tabs system adds the class (current) to the first tab hence the first List Item by default in our case “FIRST”. What I am wanting to do is add the current class to a different List Item for example “SECOND”. But this is where my question comes in, what via jQuery, should I do to stop the adding of the class “current” to the first list item by default, so I may add “current” to another LIST ITEM, and then when clicked on other LIST ITEMs apply the current class.

Does that make sense? I am sorry, this is a little more difficult to explain without having the default RAW jQuery File.

Thank you again,
Aaron

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

    Using the HTML you have provided and the code from jquerytools (as linked to in your question), I am able to reproduce the tab system without the problem you are having:

    JSFiddle: http://jsfiddle.net/syG2Q/

    It may be that you need to update to the latest version of JQuery.

    If this is not the case then maybe you could reproduce your bug in a JSFiddle for us (feel free to use mine as a working example).

    Edit

    Ok, I believe I misunderstood your question when I read it.

    @nav linked you to some useful documentation: http://flowplayer.org/tools/demos/tabs/anchors.html#second

    According to that documentation, you need to add a name to the href of your anchor tags and then call this accordingly:

    <ul class="tabs">
        <li><a href="#first">First</a></li>
        <li><a href="#second">Second</a></li>
        <li><a href="#third">Third</a></li>
        <li><a href="#fourth">Fourth</a></li>
        <li><a href="#fifth">Fifth</a></li>
    </ul>
    

    And in your javascript on page load:

    location.hash = "second";
    

    JSFiddle: http://jsfiddle.net/syG2Q/2/

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

Sidebar

Related Questions

I have a StackOverflow-like tagging system for a database I'm working on. And I'm
I'm implementing a voting system like the one used by stackoverflow. It's working with
Hi people stackoverflow. I'm working with MVVM, I have ViewModel call UserViewModel with a
I'm working on problem four of Project Euler and am running into a stackoverflow
Hey Stackoverflow I'm working on my homework and I'm trying to reverse a circular-linked
Hi Stackoverflow people, I am working on an organisation registration, in which orgs can
I found the following in Stackoverflow and have been working with it to find
I've been working through the exercises in a book recommended here on stackoverflow, however
I've read through the documentation for Jquery UI Tabs (1.7) and I believe I'm
Ruby and StackOverflow newb here working my way through Ruby and ran into my

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.