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

The Archive Base Latest Questions

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

so, I have a page which uses a css stylesheet which unfortunately, I can’t

  • 0

so, I have a page which uses a css stylesheet which unfortunately, I can’t modify, This contains:

select {
    color: #333333;
    background-color: #FAFAFA;
    font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
    font-size: 1.1em;
    font-weight: normal;
    border: 1px solid #A9B8C2;
    padding: 1px;
}

In the same page, I have a

<select id='myid' style='width:400px;'>

which is disabled (I tried both disabled in HTML with disabled or JS’ element.disabled = true with the same result).

The problem is that the select due to the CSS inherited does not look disabled at all (even if it is infact disabled).

How can I best clear the CSS style inherited so that my select, once disabled looks like this? I do not necessarily want to drop the current style, apart from the unwanted side-effect.

Thanks!

  • 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-25T11:13:53+00:00Added an answer on May 25, 2026 at 11:13 am

    so, I have a page which uses a css stylesheet which unfortunately, I
    can’t modify

    If you can’t modify the stylesheet that sets this:

    select {
        background-color: #FAFAFA;
        border: 1px solid #A9B8C2;
    }
    

    It’s impossible to revert the <select> back to the native version.


    The problem is that the select due to the CSS inherited does not look
    disabled at all (even if it is infact disabled).

    In that case, I think you should do this:

    select[disabled] {
        border: 1px solid red;
        /* whatever you want a disabled select to look like */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage which I'm updating, this page uses Prototype together with Lightbox.
I have created an HTML page which uses simple CSS (no javascript) for menu
I have an ASP.Net web page, which uses a Master Page template. The page
I have a system that uses a meta refresh to a logout page, which
I have page which is redirected from htaccess. now I can pass the German
I have a page which work like a navigation and a iframe in this
I am using VS2005 C#. I have a login page which uses a background
Using 960.gs, I have a page which is a login screen which uses a
I have a simple .html page which uses Javascript to display some popups. Now
I have a JSP page which uses some kind of JSTL statment 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.