jQuery unbind does not work

Posted by aximili on Stack Overflow See other posts from Stack Overflow or by aximili
Published on 2010-04-28T07:37:26Z Indexed on 2010/04/28 7:43 UTC
Read the original article Hit count: 351

Filed under:
|

My unbind does not work.

$("img.hoverable").hover(ChangeImage, ChangeBack);
$("a img.hoverable").unbind('hover');

The HTML could be something like this

<img class="hoverable" src="something.jpg"/>
<a href="#"><img class="hoverable" src="something.jpg"/></a>

When I hover over the second HTML, ChangeImage is still fired.

I am not sure if I am using it correctly, can anyone please advise?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about unbind