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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:28:45+00:00 2026-06-09T20:28:45+00:00

I have a select box like this: <select id=se> <option>An option</option> <option>Another option</option> </select>

  • 0

I have a select box like this:

<select id="se">
   <option>An option</option>
   <option>Another option</option>
</select>

I want to display a text when the user enter the mouse on the select box and hide if the user leave the area with the mouse. Like this:

jQuery('#se').mouseover(function(){
   someThing.show();
}).mouseout(function(){
   someThing.hide();
});

The first step works fine. When I enter the selectbox the text will be displayed. When I now click on the select box to select an option the “mouseout” event will be trigger when I have my mouse over a option – but the option element is IN the select element … I don’t know why, but jQuery seems to think that I am out of the select box.

Is there any solution, without to change the HTML code ?

edit: I tried mouseenter, mouseover, mouseout, mouseleave …

  • 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-09T20:28:46+00:00Added an answer on June 9, 2026 at 8:28 pm

    Use a variable isFocus

    JavaScript/Jquery:

    var isFocus = false;
    jQuery('#se').mouseover(function(){
       someThing.show();
    }).mouseout(function(){
        if(!isFocus)
        {
           someThing.hide();
        }
    }).focus(function(){
        isFocus = true;
    }).blur(function(){
        someThing.hide();
        isFocus = false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a box like this: <div id=selectBox> Select: <select> <option>1</option> <option>2</option> </select> </div>
I have this code that Show/Hide a text box if I select a category
I have a select box on a classic ASP page which looks like this:
I have a form in a .html files where input/select box looks like this
I have this piece of code for select option: <select class=select-box name=select-choice-month id=select-locations> <option
Can any one help me with this.. i have an option box like this
I currently have a HTML select box like below. <select name=item_1> <option value=0>Choose one...</option>
I have select list items looking like this: <option>- Data source A -</option> <option>-
like this is my form's select box <select name=cutid onchange=findcustid(this.value)> <option value=1001>cust 1</option> <option
If I have a form like this: <form action= method=post> <select id=links name=links> <option

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.