...and Get Yourself Out! (lesson 12)


#1


Hello, just wondering if there is something wrong with my code. I double checked it and I think it looks fine to me. See link below for exercise and error message.

https://www.codecademy.com/en/courses/web-beginner-en-bay3D/2/4?curriculum_id=50a3fad8c7a770b5fd0007a1


Oops, try again. Please follow the instructions on the Full Preview page to test your code.


$(document).ready(function() {
    $('div').mouseenter(function() {
        $('div').fadeTo('fast', 1);
         
    });
        $('div').mouseleave('fast', 0.5);  
});


#2

$('div').mouseleave('fast', 0.5);

you need a handler( function ) for this event.see the mouseenter event.


#3

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