6. Hover


#1

The code works (background changes color) but it won't let me move on. Any help is appreciated!

$(document).ready(function(){

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

});

#2

Nevermind - i had to hover for a longer period of time.


#3

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