6/12 Error?


#1

Hey folks,

I am getting this error:

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

On this code which I believe is correct?

$(document).ready(function(){

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

});

Help!


#2

https://www.codecademy.com/forum_questions/55e0339893767653d300035a


#3

Hi, I'm getting this error, too. But it looks like someone already posted a solution - thank you! :smile:


#4

Zelenzoom's solution (via link) is a lifesaver. Codecademy really should add messages to tell you something's glitched, and how to workaround it.


#9