8. Flexible Selections


#1

https://www.codecademy.com/en/courses/web-beginner-en-GfjC6/1/4

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

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

#2

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
});

#3

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."

$(document).ready(function(){
$('.pink, .red').fadeTo('slow',0);
});

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


#4

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.


#7

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