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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:39:02+00:00 2026-05-31T07:39:02+00:00

I am creating a quick view effect for my website. When someone hovers over

  • 0

I am creating a “quick view” effect for my website. When someone hovers over a product on my website, I have a “quick view” button that appears over the image so that users can click on the button and “zoom in” on the product. I was able to use jQuery to show the “quick view” button on mouseover and I was able to hide the “quick view” button on mouseout. However, when I mouseover/mouseout on one product, the “quick view” effect is displayed over ALL the products and not just the specific product that I have my mouse over.

My products are inside a list with id=ProductGrid. The “quick view” button is contained inside this list and has a class of .quickView. I tried creating a trigger in the li tag with the AddClass()/RemoveClass() functions but it still resulted in the “quick view” being shown over all the products. My goal is to show the “quick view” button only one time on the product that is being hovered over. I realize that the problem I am having is that the mousever event is being applied to ALL the elements. Not sure how to solve this issue.

I am new to jQuery and any help would be much appreciated.

Thank you,

Jon

Here is my HTML for my products:

<ol id="productGrid">

<li><a href=""><img src=""></a><a href="" class="quickView">Quick View</a><br>
<span class="brandName">Gildan</span><br> <span class="productName">Gildan Shirt</span> <br><span class="price">$20</span></li>


<li><a href=""><img src=""></a><a href="" class="quickView">Quick View</a><br>
<span class="brandName">Gildan</span><br> <span class="productName">Gildan Shirt</span> <br><span class="price">$20</span></li>

Here is my JavaScript/jQuery for the quickView button:

$('#productGrid li').mouseover(function() {

$(this).addClass('trigger'); // add class trigger to li element

$('.trigger').mouseover(function() { // shows quickView
$('.quickView').show();
}); // end trigger mouseover
}); // end #productGrid li mouse over

$('#productGrid li').mouseout(function() {

$('.trigger').mouseout(function() { // hides quickView
$('.quickView').hide();
});// end trigger mouseout

$('#productGrid li').removeClass('trigger');

}); // end #productGrid li mouse out

  • 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-31T07:39:03+00:00Added an answer on May 31, 2026 at 7:39 am

    Couple things:

    1. You’ll want to move the $('.trigger').mouseover() (and mouseout()) handlers outside of the other mouseover handlers, otherwise you’ll be rebinding every time. You only want those to be defined once. edit: in fact, I don’t understand why you’re dynamically adding that trigger class at all. Just put it in your html to start with or show the quickView on the li hover.

    2. The reason you’re seeing all of them is $('.quickView').show(). With that statement you’re selecting ALL elements with the quickView class, not just the nearest one. Since the quickView element is inside your li element, you need to get just that one.

      $(this).parents(".li").find(".quickView").show();

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

Sidebar

Related Questions

I'm creating a website that will have the admin upload documents available only to
I have successfully set up a quick test of creating a REST-like service that
Creating a JApplet I have 2 Text Fields, a button and a Text Area.
here is a quick question, i have my couple view controllers classes, and have
I am creating a quick backup script that will dump some databases into a
I am creating a little voting mechanism that sends a quick database timestamp through
I am working on creating a windows mobile application and I have a quick
For giggles, I'm creating an image free, but interacting website. On the menu, I
I'm creating quick web app that needs to send a php-created message from within
I am creating a quick'n'dirty utility that will enable editing of data read sequentially

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.