Please i am stuck here


#1

Inside script.js

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

The code works perfect but i am getting an error message that i should follow the instructions on the Full Preview page to test your code.


#2

Hi can you please tell me which course and lesson it is?


#3

mouseleave function should be before the mouseenter function.


#4

I met same problem here, all you need to do is wait for more seconds before going back to editor.

check this


#5

I remove the mouseenter function and it passed.
$(document).ready(function(){
$('div').mouseleave(function(){
$('div').fadeTo('fast',0.5);
});
});


#6

Try hovering your mouse to the div tag and then away from the div tag