Jump to content

Don't want to affect all class elements


1internet

Recommended Posts

$('.cart_item').hover(function(){
    $('.remove_cart_item').fadeToggle();
});

So the issue is that when I hover over the div class cart_item, all the divs with class cart_item show the hidden div class remove_cart_item.

How do I get it to just show for the div its hovering over?

Link to comment
https://forums.phpfreaks.com/topic/277676-dont-want-to-affect-all-class-elements/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.