12/13


#1

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

    $('div').fadeTo('fast', 0.5);
});

Whats Wrong?


#2

Hi David,

You need to end your mouseenter function() before your mouseleave function() :)


#3

like this?

$(document).ready(function(){

$('div').mouseenter(function(){

$('div').fadeTo('fast', 1.0);

$('div').mouseleave(function() {

     $('div').fadeTo('fast', 0.5);
});

});


#4

or like this? i dont know ?

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

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

});


#5

@megamaster20225 THat second one looks correct to me. Is it passing you?


#6

@zystvan It dosent work.....


#7

@megamaster20225 Make sure you're following the instructions by the Back to Editor button in the full page preview; sometimes moving your mouse around too fast will make it not pass you.
If that's not the problem, try switching browsers?