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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:30:48+00:00 2026-06-10T11:30:48+00:00

I want to disable a CSS class when the page loads. I have the

  • 0

I want to disable a CSS class when the page loads. I have the class .rtsULmenuLeft:

   .rtsULmenuLeft
    {
        list-style:none;
        margin: 0;
        padding: 0;
    }

All instances of the style need to be disabled. How can I do this?

In ListStyle Image iam using custom image. It is displaying and again hidden at last. That is, with bullet marks it is displaying again. I need to have that custom image to be present. 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-06-10T11:30:50+00:00Added an answer on June 10, 2026 at 11:30 am

    Here is a working example of what you have requested: http://jsfiddle.net/ALLew/

    In the example:

    • all ULs are yelow
    • items with class rtsULmenuLeft are red
    • items with class rtsULmenuRight are blue

    As you can see, the rtsULmenuLeft classNames are removed, and the lists are displayed yellow.

    // Define a function to run on page load.
    var loadCheck = function() {
        // Cancel the function if the page isn't loaded...
        if(document.readyState !== "complete") {
            // ... but call it again in 100 milliseconds.
            setTimeout(loadCheck, 100);
            return;
        }
    
        // From here on, the page is loaded.
        // Obtain a list of all elements with the particular class name
        var elList = document.getElementsByClassName("rtsULmenuLeft");
    
        // Loop over the elements until there are no longer any with the class.
        while(elList.length > 0) {
            // For each element, remove the class.
            elList[0].className = elList[0].className.replace(
                /\brtsULmenuLeft\b/,    // RegExp of class name in word boundaries
                ""                      // Replace with empty string - remove it.
            );
        }
    };
    
    loadCheck();
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to disable a link using CSS? I have a class
I want to disable all Foreign key constraints and re-enable them after, is there
I want to disable directory browsing of /galerias folder and all subdirectories Index of
I'm trying to filter button events based on whether they have a CSS class
I have a JSF page that contains: <div class=tableCaption> <h2>Batch Details</h2> </div> and a
I have a page that looks like this: <body> <div class=pollid > <select class=pollid
I want to disable my all input element of a div by applying my
I have 2 buttons on a page and enable/disable of these buttons are done
I have this css: .disable { properties } .comment_action:hover { properties } I have
I want to disable the Charging and Network identification in Windows phone emulator.. Is

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.