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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:25:13+00:00 2026-05-31T10:25:13+00:00

Refer to this fiddle Please. What I am trying to do is on hovering

  • 0

Refer to this fiddle Please.
What I am trying to do is on hovering on a-tag inside #menu ul li, the background-color color of #header-bottom must also changed as of similar to background-color of the a-tag.
How can I achieve this?

UPDATE
Done this with CSS only yippie! 🙂 Here is the fiddle

  • 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-31T10:25:14+00:00Added an answer on May 31, 2026 at 10:25 am

    Here is a jQuery method (sorry too much effort to make this javascript only for me). It could be translated though.

    http://jsfiddle.net/PCbVs/9/

    $('.menu').hover(
    
    function() {
        var color = $(this).css('borderLeftColor');
        console.log(color);
        $('#header-bottom').css('backgroundColor', color);
    }, function() {
    
    });​
    

    Or with jQuery UI animated style transitions.

    http://jsfiddle.net/PCbVs/10/

    $('.menu').hover(
    
    function() {
        var color = $(this).css('borderLeftColor');
        console.log(color);
        $('#header-bottom').stop().animate({ backgroundColor: color }, 500);
    }, function() {
    
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please refer to this background question. After constructing this COUNT, how would I then
Please refer to this: http://jsfiddle.net/k8c7w/ I am trying to get the middle grey band
Please refer this fiddle , I have tried to create an animation where a
Please refer to this post. I have become able to configure my web.config file
fiddle code: <button onclick=this.disabled=true; setTimeout(function(){this.disabled=false;},500);>click</button> this seems to refer to the window rather than
Please refer to this API. The link is: http://download.carrot2.org/stable/javadoc/org/carrot2/text/preprocessing/pipeline/CompletePreprocessingPipeline.html Class CompletePreprocessingPipeline Field Summary DocumentAssigner
Could you please refer this http://jsfiddle.net/BRWWN/ How can I position the divs in the
Please refer this question How to assign multiple names simultaneously to a C# class
What does 'this' keyword refer to when used in global object? Let's say for
Note: In this question I'm using the term autocomplete (or iterative search) to refer

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.