12. ....And Get Yourself Out "Oops. Try Again......"



My code looks right, I went over everything and it seems like nothing is missing, but the error message says there is. The error message I keep getting is: "Oops, try again. It looks like you didn't set your div's opacity to 0.5. Check the example above in the instructions if you need help!"

Below is my code:

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


Function missing:

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


Thanks! Whew, JQuery is confusing at first. Way different then JavaScript. :joy:


to me, this looks cleaner:

    $(this).fadeTo('fast', 1.0);   
   $(this).fadeTo('fast', 0.5);


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