8. Flexible Selections



I don't understand what's wrong with this?

$('.pink, .red').fadeTo('slow', 0);


Without the .ready() function, this code executes immediately, and the page has not loaded yet so nothing happens when it does. We need to defer the script until the DOM content is ready.

$(document).ready(function() {
    // code


My code used the ready function and the pink and the red disappear.
It says "Way to go! Start next lesson"
But it also says "Oops, try again. Please follow the instructions on the Full Preview page to test your code."

$('.pink, .red').fadeTo('slow',0);

I'm just wondering if there might be something small that should be fixed?


The full preview screen has instructions that appear in the bar at the bottom. We need to allow them time to appear, and follow them slowly. Just take a few seconds to complete the final submit.


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