I want to disable the hover (and click) on elements which do not have a specific class name attribute:
<svg>
<path class="myClass"></path>
<path class="myClass active"></path>
</svg>
Basically if path has not attribute className "active" don't hover or click
Tried:
if (!$("path").hasClass("active")) {
$(this).unbind('mouseenter mouseleave');
};
But I believe I should use .attr("class"..)
since it is a svg path