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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:12:49+00:00 2026-06-12T13:12:49+00:00

This feels like it should be very easy to do, but for some reason

  • 0

This feels like it should be very easy to do, but for some reason I’m having trouble. I’ve a fairly vanilla Superfish menu (just top line & drop downs, no sub-menus).

I’d like to disable one of the menu items without removing it from the menu. Handling the onClick is easy – just disregard the click if you selected the menu. The part that’s giving me trouble is indicating to the user that “this menu item is disabled”.

For example, I’d like the menu item “DISABLE ME” to be a different color, have a different background, etc.

enter image description here

I have a JSFiddle where I’m trying to set the color to red (or green, or whatever).

If JSFiddle dies, here’s the basics:

HTML:

<ul id="sample-menu-1" class="sf-menu">
    <li class="current">
        <a href="#a">menu item</a>
        <ul>
            <li>
                <a href="#aa">menu item</a>
            </li>
            <li class="current">
                <a href="#ab">menu item</a>
            </li>
            <li class='disableLI'>
                <a href="#">DISABLE ME</a>
            </li>
            <li>
                <a href="#">menu item</a>
            </li>
        </ul>
    </li>
    <li>
        <a href="#">menu item</a>
    </li>
    <li>
        <a>menu item</a>
    </li>    
</ul>​

Here’s the vanilla Javascript:

$("ul.sf-menu").superfish();​

And here’s the not-working CSS:

.disableLI { color: red; }
.sf-menu, .disableLI { color : green; }

​

  • 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-12T13:12:50+00:00Added an answer on June 12, 2026 at 1:12 pm

    I think you just targeted the wrong element

    http://jsfiddle.net/WUjQQ/1/

    to make things simple

    .disableLI a { color: red !important; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel like this should be obvious to me, but for some reason I
I feel like this must be very simple, but for some reason I am
This feels like it should be pretty simple, but not much seems to be
It feels like there must be some semi-simple solution to this, but I just
This feels like a very dumb question that should be obvious to me. ;)
I feel like this one should be easy but after numerous searches and attempts
I feel like this should be a no brainer, but clearly I'm missing something...
I feel like this is something I should already know, but I'm just not
This feels like a really basic question, but I can't figure it out anyway..
This feels like the kind of code that only fails in-situ, but I will

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.