Get stuck


#1


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


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');
    }
  );

});


#2

Your code is fine. This exercise is a little tricky. On submitting the code, the browser window goes fullscreen and below a message appears "Please move your mouse into div."

Hover over the menu for atleast 2 seconds and then click "Back to editor". Done


#3

Thanks so much! It worked.


#4

welcome :slight_smile:


#5

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