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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:06:27+00:00 2026-05-28T06:06:27+00:00

I have a simple Tab switcher, right now you click on a tab to

  • 0

I have a simple Tab switcher, right now you click on a tab to switch it but I would like to change it to a hover to switch instead.

Below is the code and the JSFiddle shows it in action right now with the click event http://jsfiddle.net/jasondavis/p95nJ/

jQuery(document).ready(function($) {

    //tabs
     $("ul.tabrow li:first").addClass("active").show(); //Activate first tab
    $(".tab-content div:first").show(); //Show first tab content
    //On Click Event
    $("ul.tabrow li").click(function() {
        $("ul.tabrow li").removeClass("active"); //Remove any "active" class
        $(this).addClass("active"); //Add "active" class to selected tab
        $(".tab-box").hide(); //Hide all tab content
        var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
        $(activeTab).fadeIn(); //Fade in the active content
        return false;
    });

});

If you can help I would really appreciate it. I do NOT want to use jQueryUI

The HTML

<div class="tab-wrap">
    <ul class="tabrow">
        <li class=""><a href="#tab_tags">Tags</a></li>
        <li class=""><a href="#tab_recent">Recent Articles</a></li>
        <li class="active"><a href="#tab_tools">Tools</a></li>
    </ul>


    <div class="tab-content">
        <div id="tab_tags" class="tab-box" style="display: none; ">
            <div class="taglist">
                <ul id="tag-list">
                    <li><a href="/tag/php/" title="View all 1 posts filed under PHP">PHP</a></li>
                    <li><a href="/tag/personal/" title="View all 1 posts filed under Personal">Personal</a></li>
                    <li><a href="/tag/wordpress/" title="View all 1 posts filed under WordPress">Wordpress</a></li>
                </ul>
            </div>
            <div class="clear">
            </div>
            <a href="http://www.codedevelopr.com/archives/" id="tag-to-archive">View All Tags →</a>
        </div>


        <div id="tab_recent" class="tab-box" style="display: none; ">
            <ul>
                <li class="widget"><a href="/wordpress-custom-editor-quicktag-buttons/" title="WordPress Custom Editor Quicktag Buttons">WordPress Custom Editor Quicktag Buttons</a></li>
                <li class="widget"><a href="/welcome/" title="Welcome to CodeDevelopr">Welcome to CodeDevelopr</a></li>
            </ul>
        </div>


        <div id="tab_tools" class="tab-box" style="display: block; ">
            Coming Soon. In the mean time subscribe to the <a href="http://feeds.feedburner.com/codedevelopr">RSS Feed</a>
        </div>
    </div>
</div>
  • 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-28T06:06:28+00:00Added an answer on May 28, 2026 at 6:06 am

    Change

    $("ul.tabrow li").click(function() {})
    

    to

    $("ul.tabrow li").hover(function() {})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple tab switching code. Basically HTML looks like this: <ul
I have a simple unmanaged c++ project in Visual Studio 2008, and would like
I'm building a simple Facebook tab. I have two tabs that change every 3
I have simple HTML code with some JavaScript. It looks like: <html> <head> <script
I have a simple tab-separated text file that I want Ruby to read every
I have a simple dialog with tab control whit property Dock = Fill. On
I have a simple jquery tab, which works fine in all browser except ie
I have a simple tabpanel. I want to fetch currently active tab's child components
I have a simple Tab Navigation with jquery. Whenever a new tab is clicked,
I have a simple slider and I want that if a certain tab is

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.