I have a strange issue with jQuery’s hover, addClass
$(document).ready(function(){
$('#selectable li').hover(
function(){
$(this).addClass('selecting', 600);
},
function(){
$(this).removeClass('selecting', 800);
}
);
});
The strange is now that the selected element lights up twice. How can this be? What do I do to prevent two light ups?
Best Regards,
B. Kaiser
Try using an alternative such as this :
You’ll need a current version of jQuery. ver 1.7+
Not too sure that you are trying to accomplish with the numeric parameters in your
addClass/removeClasscalls. The jQuery documentation defines those functions as follows :The
removeClass()documentation works pretty much the same way too.