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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:44:44+00:00 2026-06-03T13:44:44+00:00

I changed the bootstrab.js (just replaced click with hover): $(function () { $(‘body’).on(‘hover.tab.data-api’, ‘[data-toggle=tab],

  • 0

I changed the bootstrab.js (just replaced click with hover):

  $(function () {
    $('body').on('hover.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
      e.preventDefault()
      $(this).tab('show')
    })
  })

Now i want the content-tab to close when you are not hovering over the tab or content.

How do i do this?

  • 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-03T13:44:45+00:00Added an answer on June 3, 2026 at 1:44 pm

    Update: something like the below

    var timer;
    
    $('tab_element').hover(
        function(){ //hover
            // clear timer first
            clearTimeout(timer);
            // then show the content
        },
        function(){ //unhovered, 1000 milliseconds
            // set a timer to call the hide function
            timer = setTimeout("hide_function", 1000);
        }
    );
    
    $('content_tab_here').bind('mouseleave', function(){
        // hide it, you can set a timer here too if you want
    });
    

    Here is the docs on timer http://www.w3schools.com/js/js_timing.asp
    There are many options here but this will get you started, the jquery I used is old school so if you are using latest version of jquery you can change the code accordingly. I don’t want to write out everything for you because then you won’t be learning and I don’t have that much time because I am at work. Good luck.

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

Sidebar

Related Questions

Just moved to Grails 1.2.1 (used 1.1.1 before). Changed application.properties, ran grails upgrade, fixed
I changed the folder that my WordPress installation was in. However, this worked fine,
I changed my .autotest file to use it with a Ruby-based project. After that,
I changed the folder permission of my Home directory by mistake and it is
I changed some parameters in a Visual Studio C++ project, and now I don't
I changed AlarmController.java in ApiDemo a little bit, so I want the alarm not
I changed my wordpress permalinks to %pagname%. Prior to doing this i posted two
I changed the file permissions on all my files and directories in my Joomla
I changed the tree of my JSON-P output, and i cannot access to my
I changed the background colour of the spinner.After changing the bg colour the down

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.