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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:06:24+00:00 2026-05-13T17:06:24+00:00

In the following .input matches with a tag. The code works fine in all

  • 0

In the following “.input” matches with a tag.

The code works fine in all browser except in internet explorer where I need to click on a select box twice to get the dropdown.

$(".input").focus(function () {
var rc = $(this).parents(".rc-input");
rc.removeClass("rc-input-default");
rc.addClass("rc-input-active");
});

If I use mousedown instead of focus it work, but the I don’t get the desired effect when tabbing?

<div class="rc-input">
   <select class="input">
   ...
   </select>
</div>
  • 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-13T17:06:24+00:00Added an answer on May 13, 2026 at 5:06 pm

    It’s a bug in IE. When you make any change to a select box in IE prior to version 8 (including indirect style changes via changing class names) it recreates the underlying Windows dropdown widget, which has the side-effect of resetting it to a closed state.

    On IE6-7, as a workaround, you can use onfocusin instead of onfocus; as this happens before the select is focused, the restyling doesn’t close the control. Or just use a simple CSS :focus rule in preference to class-changing, and let IE6-7 users forgo the input highlighting. (They don’t deserve the pretties!)

    See this answer for example code combining these approaches.

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

Sidebar

Related Questions

The following code does not submit the input values: $('.button').live('click', function() { var date
Consider the following code snippet: String input = Print this; System.out.println(input.matches(\\bthis\\b)); Output false What
Given the following PHP code using DOMDocument : $inputs = $xpath->query('//input | //select |
hay all, I just did the following: a = input(give a word: ) b
following code doesn't work with input: 2 7 add Elly 0888424242 add Elly 0883666666
The following code works: String str= test with foo hoo; Pattern pattern = Pattern.compile(foo);
Short version of Problem Autocomplete works when the input string matches the result string,
Assume I have the following input in Pig: some And I would like to
I have the following input XML: <root age=1> <description>some text</description> <section> <item name=a> <uuid>1</uuid>
For ScoreOption , I expect to get the following input A, B, and T_(state)

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.