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

  • Home
  • SEARCH
  • 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 7019613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:12:23+00:00 2026-05-27T23:12:23+00:00

I have this demo However the mouse over when dragged to left or right

  • 0

I have this demo

However the mouse over when dragged to left or right stops the toogle.
The hover() event didn’t solve the problem.

Any idea ?

div.fileinputs {
    position: relative;
    display: none;
}

#show {
    width: 200px;
    height: 40px;
    background-color: red;
    z-index: -2px;
    position: absolute;
}

<div id="show"></div>

<div class="fileinputs">Visible Panel Div</div>

$('#show').mouseover(function() {
    $('.fileinputs').toggle();
});
  • 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-27T23:12:23+00:00Added an answer on May 27, 2026 at 11:12 pm

    Given that you want to simply show the element on mouseover and then hide it on mouseout, you should also use mouseout() to define the desired behavior you want when the mouse is removed:

    $("#show")
        .mouseover(function(){
            $(".fileinputs").toggle();
        })
        .mouseout(function(){
            $(".fileinputs").toggle();
        });
    

    Example. (It’s choppy because fileinputs is a separate element, and it’s not counting hovering over that as hovering over the show div).

    But you should use hover, just to make it easier:

    $("#show").hover(function(){
        $(".fileinputs").show();
    }, function(){
        $(".fileinputs").hide();
    });
    

    Example. (Choppy for the same reason as above).

    Since your desired behavior is definite, we’ll just use show() for when the mouse is over it and hide() when it is removed.

    By the way, it is preferred that you bind events using delegate() (for older versions of jQuery) or on() (for jQuery 1.7+):

    $(document).on("mouseover mouseout", "#show", function(){
        $(".fileinputs").toggle();
    });
    

    Example.

    Though, you really should just use CSS for this. You can place fileinputs inside of show and use a child selector:

    #show:hover > .fileinputs {
        display: block;
    }
    

    Example. This one doesn’t flicker because the element is inside the one that’s getting the hover declarations attached to it, and CSS considers it as though you are still hovering over the parent element (because you technically are, as the target of the hover is within the boundaries of the parent [it would still work if it was outside the boundaries because the element is still nested]).

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

Sidebar

Related Questions

So, I have this demo site up: http://webspirited.com/ha2/ If you hover over the main
http://demo.thethemefoundry.com/traction/#post-183 Which wordpress plugin is this, to have post image on the left side
see this demo from jquery ui you have to hold down the Ctrl key
Please have a look at this demo page that I cooked up a while
So I have this page that has some basic custom tabs: http://demo.unlockedmanagement.com/users/view/2 * NOTE
I am trying to implement this demo on my local machine. http://bit.ly/4g4o1r I have
Currently I have a stacked bar chart like this ( jsfiddle demo ) I
I have been playing with the demo code from this msdn article by Jeffrey
I have implemented this Feature Content Slider: http://demo.webdeveloperplus.com/featured-content-slider/ There seems to be space between
I have the demo facebook app and without any modification this is the code:

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.