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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:35:37+00:00 2026-05-10T19:35:37+00:00

I have this bit of script to widen a text box on mouseover and

  • 0

I have this bit of script to widen a text box on mouseover and shorten it on mouseoff.

The problem I am having is that Internet Explorer doesn’t seem to extend it’s hover over the options of a select box.

This means in IE I can click the select, have the options drop down, but if I try to select one, they vanish and the select box re-sizes as soon as I move off the select box itself.

Example Code:

<script type='text/javascript'> $(function() { $('#TheSelect').hover(     function(e){         $('#TheText').val('OVER');         $(this).width( 600 );     },     function(e){         $('#TheText').val('OUT');         $(this).width( 50 );    } ); }); </script> 

And:

<input type='text' id='TheText' /><br /><br />  <select id='TheSelect' style='width:50px;'>     <option value='1'>One</option>     <option value='2'>Two</option>     <option value='3'>Three</option>     <option value='42,693,748,756'>Forty-two billion, six-hundred and ninety-three million, seven-hundred-forty-some-odd..... </option>     <option value='5'>Five</option>     <option value='6'>Six</option>     <option value='7'>Seven...</option> </select> 

Are there any workarounds for select boxes in IE? I would even consider a jquery replacement if anyone can recommend one that is really reliable.

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. 2026-05-10T19:35:37+00:00Added an answer on May 10, 2026 at 7:35 pm

    Apparently IE doesn’t consider the drop down bit part of the select element. It’s doable, but it takes a bit of cheating with expando properties and blur/focus events to enable and disable the ‘hide’ effect to stop it kicking in when the mouse enters the drop-down part of the element.

    Have a go with this:

    $(function() {     var expand   = function(){ $(this).width(600) }     var contract = function(){ if (!this.noHide) $(this).width(50) }     var focus    = function(){ this.noHide = true }     var blur     = function(){ this.noHide = false; contract.call(this) }     $('#TheSelect')         .hover(expand, contract)         .focus(focus)         .click(focus)         .blur(blur)         .change(blur) }); 

    (Apologies if this isn’t how one is supposed to use jQuery – I’ve never used it before :))

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

Sidebar

Related Questions

I have this bit of jQuery script that can be found here: http://jsfiddle.net/RUqNN/45/ When
ok i got this problem. i have this routes: (code bit change) File:/home/dotcloud/current/config/routes.js exports.routes
I'm a javascript novice, I have this bit of code in a jsx script
I'm a complete beginner with jQuery and I have this bit of script here
I have this bit of powershell script but i can't get the $DirectoryName to
I have this problem when I try to use script/generate: $ script/generate start /Users/gst/.gem/ruby/1.8/gems/hpricot-0.8.1/lib/fast_xs.bundle:
I have this as a test harness: <html> <script src=jquery-1.7.1.min.js></script> <script src=jquery-ui-1.8.18.custom.min.js></script> <script type=text/javascript>
I have this script: CREATE FUNCTION dbo.CheckIfSFExists(@param1 INT, @param2 BIT = 1 ) RETURNS
I have this content box on my site, that has different tabs on the
I have a shell script that I am executing in Cygwin (maybe this 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.