I need to be able to cancel an event based on the amount of time an element is hovered on. Say when I set the delay to 500ms, when the element is being hovered on for less than that, an event should be cancelled, otherwise it is fired. The delay() and setTimeout() function seem incapable of doing that.
I need to be able to cancel an event based on the amount of
Share
You can try something like this instead of using jQuery
delaymethod.Working demo