My continue button has a hover event that tells you why it's disabled. The only problem is I can't remove the hover event when I enable the button....
this works
function disable_continue_button(){
$('#frame_2 > .next')
.addClass('faded tt')
.hover(function(){
$hovered = $(this);
//tooltip?
tip = $('.tip.notification.information');
tip.find('div').html($hovered.attr('tt'));
tip.fadeIn(150);
},
function() {
tip.hide();
})
.mousemove(function(e) {
var mousex = e.pageX +40; //Get X coodrinates
var mousey = e.pageY -20; //Get Y coordinates
tip.css({top: mousey, left: mousex });
});
}
this doesn't work
function enable_continue_button(){
$('#frame_2 > .next')
.unbind('mouseenter mouseleave mousemove')
.removeClass('faded tt');
}
the classes are removed ok, but the hover tooltip is not removed...
mouseenterandmouseleave) in which context are you callingenable_continue_button()? Btw youraddClassfunction is wrong, you should remove the comma. Based on that, are you sure thatfadedandttare added as classes? Maybe callingnable_continue_button()fails and the clases are not added so it just seems they got removed.hoverthis way (the text does not turn red). Do you get any error message and are you sure that the classes are removed (i.e.enable_continue_buttonis called)?.