So far I am stuck here. I want to toggle class on hover but don't want to remove class if cursor is on target div. My code
$(".filter-btn").hover(function () {
var target = $(this).next();
target.toggleClass("visible");
});
It works partially. As when I remove cursor from filter-btn
it removes visible
class from target div. What I need is I don't want to remove visible
class when cursor is hovered on target div