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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:36:10+00:00 2026-05-23T18:36:10+00:00

$( #menu li ).each( function(){ $( this ).bind ( click, function(){ $(this).css(color,#FF8400); $(this).siblings().css(color,white); var

  • 0
$( "#menu li" ).each(
        function(){
            $( this ).bind (
                "click",
                function(){

$(this).css("color","#FF8400");
$(this).siblings().css("color","white");


var page = $(this).attr("id");

In the code above, I’m trying to make the color of the link to change when clicking on it, while other links stay in white color, however these other links should have a mouse-over event that changes the color from white to #FF8400 on mouse-over. Any Ideas?

  • 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-23T18:36:10+00:00Added an answer on May 23, 2026 at 6:36 pm

    Why not try a combination of CSS and basic jQuery (see http://jsfiddle.net/wUgN8/)

    CSS:

    li { color: white; }
    li:hover, li.on { color: #FF8400; }
    

    jQuery:

    $( "#menu li" ).bind ("click", function(){
       $("#menu li").removeClass("on");
       $(this).addClass("on");
       var page = $(this).attr("id"); });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this Jquery code: $(document).ready(function() { // Do menu mouseovers $('.bar a').each(function() {
in all jquery examples i see this kind of code: $('.menu a').each(function(){ $(this).animate({paddingLeft: $(this).width()},
I have this code,everything works fine but .css('color','red') rule is not getting applied.I tried
$('.list-links-nested a').each(function(){ currentPage(this); }); $(#menu-main > li > a).each(function(){ currentPage(this); }); $(#menu-sub a).each(function(){ currentPage(this);
So I'm trying to set up this jQuery CSS dock menu and you can
i have 4 menu drop down list that i bind a click that calls
I ma using Javascript function to select menu items: function selectActiveMenuItem() { var path
can't make my background image' position animate $(function() { $('#nav1').bind('click',function(event){ $('ul.nav').stop().animate({backgroundPosition: 'right top'}, 1000);
I have a Menu where each MenuItem in the hierarchy has its Command property
is any menu like treeview (open\hide each node), but after postback it restore the

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.