What's wrong with my code? Section 12/13


#1

I'm getting this error for the below code "It looks like you didn't set your div's opacity to 0.5. Check the example in the instructions if you need help!":

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

});

These are 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.


#2

+++++++++++++++++++++++++++++++++++++++++++++++++++
fadeTo in jQuery Introduction 11/13 set opacity to 1
http://www.codecademy.com/forum_questions/5418564b80ff337b7200401c


opacity not recognized by browser
= http://stackoverflow.com/questions/7548833/ios-css-opacity-visibility-transition
= http://stackoverflow.com/questions/637921/opacity-of-background-color-but-not-the-text?rq=1


#3

nothing, you just need to point at your div in fullscreen and hold for few seconds then leave