jQuery Events 6. Hover


#1

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

});

ERROR MSG

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


#2

It is likely just timing. Take it real slow. Hover on a div, pause two seconds, mouse off, pause two seconds while watching the message bar for instructions.


#3

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