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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:58:05+00:00 2026-06-11T23:58:05+00:00

I am having trouble with elements inside an updatepanel losing their styles when the

  • 0

I am having trouble with elements inside an updatepanel losing their styles when the updatepanel refreshes. I know this isn’t a new question and have already read the following threads

Someguys Blog on it

And another thread on it

And the possible work-arounds include: surround the update panel with a div, surround the update panel with a div.

This doesn’t really work in my case because I have several elements inside my update panel but I want to only apply the style to two elements inside it and this method makes every element inside the update panel reflect the styles.

Any suggestions would be appreciated

-J

  • 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-11T23:58:06+00:00Added an answer on June 11, 2026 at 11:58 pm

    You can use a class on a surrounding div to control the style on elements inside the div. Put classes on some elements inside to identify them, and change the class on the surrounding div to trigger the change.

    Example:

    <div id="container" class="hide">
      This is the content that can change
      <div class="someelement">asf</div>
      <div>qwer</div>
      <div class="otherelement">uyhgf</div>
    </div>
    

    You can change the class on the outer div:

    document.getElementById('container').className = 'show';
    

    Now you can set up CSS rules to show changes on the inner elements depending on the outer class:

    .hide .someelement { display: none; }
    .show .someelement { display: block; }
    .hide .otherelement { color: yellow; }
    .show .otherelement { color: black; }
    

    When the timer replaces the content the inner elements will still look the same, as the class controlling the appearence is on the outer div.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No doubt elements of this question have been asked before, but I'm having trouble
Im new to web development and Im having some trouble getting my elements to
I know the basic algorithm for this problem but I am having trouble changing
I am having trouble figuring out what the elements are in parsed xml input,
I'm having trouble with C++ calling elements of an array of type class .
I'm having trouble getting the jQuery validation plugin to validate single input elements on
I'm having some trouble figuring out how to add elements to a parent object
I'm having trouble manipulating JavaScript generated html elements. Depending on user input - a
I'm having trouble getting the elements in my <div id=wrapper> to push down my
I'm having trouble figuring out a clean way to do this. Let's take for

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.