6. Hover - "It does't look like your background color changed(...) "


#1


Hello,
I'm stuck with this exercise:

https://www.codecademy.com/courses/web-beginner-en-JwhI1/1/2?curriculum_id=50a3fad8c7a770b5fd0007a1


The code below worked fine (firefox and chrome) and background will change but a message error appears everytime when I want to save and submit code:

"Oops, try again. It does't look like your background color changed, is your hover adding the class active?"


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

Don't know, what I'm doing wrong...


#2

after click on save and submit button see the instruction below.you have to wait 1/2 second


#3

I did it what the instruction says but it didn't work for me.
I resetted the code an rewrote it but nothing has changed.


#4

Refresh your page and try again, wait a few moments on hover watch the bottom of the screen for messages,

if that doesn't work paste in your HTML and CSS


#5

Thank you, I pasted my code in HTML and it worked! :slight_smile:


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.