Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
46
rated 0 times [  52] [ 6]  / answers: 1 / hits: 161184  / 15 Years ago, thu, april 30, 2009, 12:00:00

How do I unbind hover in jQuery?



This does not work:



$(this).unbind('hover');

More From » jquery

 Answers
17

$(this).unbind('mouseenter').unbind('mouseleave')



or more succinctly (thanks @Chad Grant):



$(this).unbind('mouseenter mouseleave')


[#99627] Friday, April 24, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ira

Total Points: 298
Total Questions: 112
Total Answers: 103

Location: Guadeloupe
Member since Sat, Aug 22, 2020
4 Years ago
;