Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable a Jquery function after some other event?

I want to disable the hover event on a particular list when another event occurs.

like image 820
zsharp Avatar asked Nov 30 '22 20:11

zsharp


1 Answers

You can use the unbind function to remove those events.

$('#theListId').unbind('mouseenter').unbind('mouseleave');
like image 147
bdukes Avatar answered Mar 07 '23 15:03

bdukes