6. Hover


#1

I have the same problem. I have used the steps in the example, and before hitting submit code, in the window to the right, my code works.

I am posting my code below.

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

Am I missing something?!


Not working for me.. can u help me?
#2

Your code looks fine to me,
What error are you getting ?

When you press save and submit, you need to hover over the div for a few seconds the remove your mouse :slight_smile:


#3

Hello, thank you for your reply. I am getting the "oops! looks like the color didn't change" error. I did hover over the div for a number of seconds. (I have read about that issue in the other replies to this thread)
For now, I have skipped that lesson, but I think there is a problem with the interpreter here, maybe someone should take a look at it? :slight_smile:


#4

Do you see the color change ?

Please paste in all of your HTML, CSS and JS code


#5

4 posts were split to a new topic: 6.Hover


#7

Dude, when doing the preview, try to follow the instruction at the bottom of the page.

Thanks to @zainabrawat


#10

Hi,

I cleared the browser cache and it worked. Thank you for your time :slight_smile:


#11