I dont know why it keeps on saying oops try again


#1

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

hi, i entered the code in properly but doesnt go though. i think there is a bug because i tried refreshing the page and tried doing it over and over again. im pretty much out of options. please help

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

#2

@hungryman123,

The Instructions

Between the }); that ends your mouseenter() and the }); that ends your $(document).ready(), add a mouseleave() that uses fadeTo to return your div's opacity to 0.5. Like the previous fadeTo, it should have 'fast' as its first input.

I do not see a div =mouseenter()= Eventhandler in your code......

$('div').mouseenter(function(){
$('div').fadeTo('fast',1);
});

#3

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