6. Hover: My code functions correctly but it tells me I'm wrong


#1

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

My code seems to work correctly, but when I try to advance, it states:
"Oops, try again. Please follow the instructions on the Full Preview page to test your code."


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

Am I misunderstanding something? If so, I can't seem to figure out what it is. :confused:


#2

https://discuss.codecademy.com/t/6-hover-bug/50381/8 worked for me