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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:46:21+00:00 2026-05-24T21:46:21+00:00

I’m trying to figure out how to generate tabs like jQuery’s tabs plugin ,

  • 0

I’m trying to figure out how to generate tabs like jQuery’s tabs plugin, but without the swapping of DIVs. In other words, I’d like a jQuery plugin that just draws the tab bar (and lets me specify which tab is selected). I’ll take care of drawing the content and having things happen when tabs are clicked.

  • 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-24T21:46:21+00:00Added an answer on May 24, 2026 at 9:46 pm

    All you have to do, is copy the classes that jQuery UI applies to the tabs, and you’re all set.

    You’ll also then add/remove classes dynamically when the user clicks on one of them.

    This is actually the way that jQuery UI does it with the tabs.

    Here are some sample classes that they use:

    ui-tabs ui-widget ui-widget-content ui-corner-all
    

    I got these by inspecting the DOM after the jQuery UI has already applied the tabs functionality. Do the same, and you’ll see exactly what classes you need for which elements.

    EDIT:

    Here’s the complete HTML:

    <div class="ui-tabs ui-widget ui-widget-content ui-corner-all">
        <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
            <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#">The selected tab</a></li>
            <li class="ui-state-default ui-corner-top"><a href="#">Other tabs</a></li>
            <li class="ui-state-default ui-corner-top"><a href="#">Other tabs</a></li>
        </ul>
    </div>
    

    And here’s the Javascript:

    $('.ui-tabs-nav li').mouseenter(function(){
        $(this).addClass('ui-state-hover');
    })
    .mouseleave(function(){
        $(this).removeClass('ui-state-hover');
    })
    .click(function(){
        $(this).addClass('ui-tabs-selected ui-state-active')
            .siblings().removeClass('ui-tabs-selected ui-state-active');
    
        return false;
    });
    

    And, of course, where would we be without the fiddle: http://jsfiddle.net/Bsa7J/ .

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace

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.