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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:18:51+00:00 2026-05-18T23:18:51+00:00

I may be trying to get too fancy on this one. I have a

  • 0

I may be trying to get too fancy on this one.

I have a pair of radio-like buttons in a row with a divider between them with background images. When one of the ‘buttons’ is clicked, I change its class. The CSS for the divider is keyed to the classes of the buttons on either side to select a background image. I am doing this with CSS ‘sibling’ selectors.

I have jQuery .click events tied to the ‘buttons’. the first thing they do is clear the ‘selected’ class from the other button and set it on the button that was clicked.

For example, if the LEFT button class=’selected’ and the RIGHT button is not, the divider between them will get a blue background. Click on the RIGHT button and it gets class=’selected’ while the LEFT button’s class is cleared. The divider turns red.

This works in IE, FF, Safari, etc. But IE is odd (IE7) – it will only reflect the divider background change when I mouse OFF the button I clicked! That is, in the example, the RIGHT button gets class=’selected’ and changes immediately on the click. But the divider stays blue until I mouse off the button, then it turns red.

The class itself IS changing and the button’s appearance changes as a result. It’s only the neighboring stuff that doesn’t!?

It reminds me of my old VB6 days when you had to periodically call ‘DoEvents’ to get Windows to make UI changes. Could there be something similar here for IE?

  • 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-18T23:18:52+00:00Added an answer on May 18, 2026 at 11:18 pm

    I have no idea why this helps, but adding .hide().show() to a selector that includes the stuff that changed class seems to make it update.

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

Sidebar

Related Questions

This may be too much trouble, but I have an object I'm trying to
I'm trying to parse a log file that looks like this: %%%% 09-May-2009 04:10:29
I'm trying to work on an app which uses GTFS. This may seems like
this may be stupidly simple but I'm trying to figure out a way to
I am trying to use (and this may be my problem already) e.Graphics.CopyFromScreen() in
I am trying to find out whether local press releases may have affected companies'
Hi I am trying to return a collection which may potentially have null date
this may sound funny, but i spent hours trying to recreate a knob with
This may be a stupid question, but I'm trying to replicate a customer's OpenLDAP
I'm trying to get started with Django, and have previously worked with CakePHP, and

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.