6.Hover


#1

Wow. I got the same error too.


6. Hover
#2

Please paste in your code and error


#3

Whop. Nevermind. I tried to submit it again and it's suddenly working :confused:


#4

I just refresh the page, submit, and it does not work again.

Here is the script.js:

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


#5

when doing the test on preview if you move your mouse out of the div too fast it will fail you,

hover over the div count five and then remove your cursor from the div


#6

Ooooh I see it now. So we have to follow the instruction at the bottom of the page.


#7

Yip :slight_smile:  


#8

Thank you. It is quite frustrating to find out the reason by myself :sweat_smile:


#9

By yourself?
I told you:


#10

Oh sorry. I mean, it was quite frustrating when I tried to find it out by myself. And then there you are giving the answer. So it is a big help of course.


#11

Oh okay, was confused. :wink:


#12