unbind help
unbind help
-
<script>
$(function(){
var hoverev = function () {
$(".single-star").hover(
function () {
//do something here
},
function () {
//do something here
}
);
}
});
$(".single-star").click(function () {
$('#star-rating'+num3).each(function () { $(this).find('a').each(function() { $(this).unbind('hover', hhover)}) });
});
</script>
I'd like to remove the hover event when I click on that element.
I think my code's a mess, because when I try to enclose the hover event in a function (hoverev, as said on the documentation), the hover wont work anymore...
Thanks !