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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:21:25+00:00 2026-06-14T06:21:25+00:00

Each <a link is an anchor for jQuery to hide(show) certain divs. I’m using

  • 0

Each <a link is an anchor for jQuery to hide(show) certain divs.

I’m using this CSS to handle hover style:

ul.textMenu a:hover

{   
    border-bottom: 3px solid #ff5c00;
    margin-bottom: -3px;
}

After the user clicks an item, I want that border-bottom to persist. How do I do this?

menu

  • 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-14T06:21:26+00:00Added an answer on June 14, 2026 at 6:21 am

    Add a css rule

    ul.textMenu a.clicked
    
    {   
        border-bottom: 3px solid #ff5c00;
    
    }
    

    and then some js

    $('ul.textMenu a').click( function() {
        // Remove the class clicked so that we have only one clicked item
        // Since there might be more than one ul i finde the parent.
        $(this).closest('ul.textMenu').find('a').removeClass('clicked')
        $(this).addClass('clicked');
    } );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using the following code to append a X link to each element
I'm using jQuery :contains selector to filter through some link tags. The following code
I have a list of definitions with a jquery show/hide effect and readmore button
I have a jQuery way of adding a .current class to an anchor link
I need to bind the onclick function in each link of a web page,
I would like to add track code for each link of in my email
I want to pass a language id for each link i click from my
I have the list with like 100,000 site link strings Each link is unique,
Scenario: I have an outline where I have links for my menu. Each link
Does ASIHTTP support multi thread? If sure, I hope each thread link to aUIProgressbar,

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.