6/12 Hover?


#1

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

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


#2

Hi Telos,

You need to remove the curly brace ({}) on line 1, since it (in this case) indicates the opening of a function(), and you aren't opening a function on line 1, only on lines 2 and 5 :slight_smile:


#3

didn't change it, i still get this:

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


#4

@cssmaster90864 Try changing it then? I'm pretty sure that if you follow my suggestion the error will go away.


#5

A post was split to a new topic: "It doesn't look like your background color changed" error, but background IS changing