jquery hoover same class target only one

0 votes

I'm using this jquery code in a page with a list of products for displaying two links when the user hover an item. The problem is all the products have the same class ".prod_box" and if I hover one item the script target all the div-s with the same class. Is it possible for the script to target only the item I'm hovering, not all the items that have the same class? Without giving each product a diferent class.

   $('.prod_box').mouseover(function () {
        $('.div_overlay').show();
    }).mouseout(function () {
        $('.div_overlay').hide();
    });
Jul 29 in Web Development by gaurav
• 17,580 points
6 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Web Development

0 votes
1 answer

jQuery show() won't turn Bootstrap d-none class visible

When you not sure how your element ...READ MORE

answered Jun 27 in Web Development by rajatha
• 7,040 points
21 views
0 votes
0 answers

JQuery only append to child

Please help me to understand why it's ...READ MORE

Jul 19 in Web Development by gaurav
• 17,580 points
6 views
0 votes
0 answers

I cant hide divs which has spesific class with Jquery

I changed my code to below code ...READ MORE

Jul 20 in Web Development by gaurav
• 17,580 points
7 views
0 votes
0 answers

jQuery exclude elements with certain class in selector

I want to setup a click event ...READ MORE

Jul 20 in Web Development by gaurav
• 17,580 points
19 views
0 votes
0 answers
0 votes
0 answers

jQuery tablesorter: filter and zebra widgets stop working after ajax update IE8 only

I am updating a table dynamically using ...READ MORE

Jul 27 in Web Development by gaurav
• 17,580 points
11 views
0 votes
1 answer

How to use jquery with asp.net ajax?

If you weren't aware, Microsoft is planning ...READ MORE

answered Oct 15, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
190 views
0 votes
1 answer

Is 'sparkline' a method?

I suggest you to check 2 things That jquery.sparkline.js is actually ...READ MORE

answered Nov 9, 2018 in Apache Spark by Frankie
• 9,830 points
602 views
0 votes
1 answer

What is jQuery?

Hey, jQuery is a fast and concise JavaScript ...READ MORE

answered Feb 14, 2020 in JQuery by kartik
• 37,500 points
308 views
0 votes
1 answer

Error: Global Variable is not accessable to local function

Hey kartik, A variable declared outside a function has a ...READ MORE

answered Feb 19, 2020 in PHP by Niroj
• 82,740 points
283 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP