6.Hover, It works but the code isn't accepted?


#1

What's the issue?

$(document).ready(function(){

$("div").hover(
function(){
$(this).addClass('active');
},
function(){
$(this).removeClass('active');
}
);

});


#2

Hi Rayhannur,

Your code is fine. I suggest you wait for the instructions by the Back to editor button, since moving the mouse too fast is often the cause problems like this.


#3

Thanks zystvan! Same thing was happening to me, moving the mouse more slowly fixed it.


#4

Thanks, the same problem overname me to


#5

Yep, same problem here. Leaving my mouse on each tab for ~3 seconds seemed to fix it, anything quicker would result in a fail.


#6

thanks. i had the same problem


#7

thank you that fixed it


#8