6:Hover


#1

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

It shows that code is incorrect, but I don't see what's wrong


$(document).ready(function(){

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


#2

This exercise has a time delay built in, with different messages appearing in the footer. Submit, click on the preview page, Mouseover the div and pause for two seconds. The message in the footer will change. Mouse off the div and pause again. After a couple seconds return to editor.


#4

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