I need to detect whether an element is hovered using jQuery. The .hover() method is not going to do what I need.
I created this reduced set to show the problem. If you remove lines 6-8 of the JS the code does its basic function, but I need something to replace .is(':hover'). On actual sites the code does work, but it throws an error when the method acts on a selector that doesn't exist.