I have encountered an issue with multiple divs having the same class. I've written a JavaScript code to adjust certain CSS properties on hover, but the problem is that when I hover over one box, all others with the same id and class are also affected. I only want to change the styles of the currently hovered box.
HTML
<div class="gameBox" id="gameBox">
<img src="https://yggdrasilgaming.com/wp-content/uploads/2016/12/yggdrasil-slot-empire-fortune.png" class="gameBoxBg"/>
<h3 class="gameBoxText">Empire Fortune</h3>
<div class="downloadCentralizer">
<img class="downloadLink rightSpace" id="downloadLink" src="https://www.kuboland.com/atm2u/images/googlePlay.png"/>
<img class="downloadLink leftSpace" id="downloadLink" src="https://www.kuboland.com/atm2u/images/apple.png"/>
</div>
</div>
JAVASCRIPT
$("#downloadLink, .gameBoxBg, .gameBoxText").hover(function(){
$(this).find(".gameBoxBg").css("filter", "blur(4px)");
$(this).find(".gameBoxText").css({"opacity": "1", "display": "block"});
}, function(){
$(this).find(".gameBoxBg").css("filter", "blur(0px)");
$(this).find(".gameBoxText").css({"opacity": "0", "display": "none"});
});
Could someone please help me resolve this issue? Thank you!