8. Flexible Selectors


#1



https://www.codecademy.com/courses/web-beginner-en-GfjC6/1/4?curriculum_id=50a3fad8c7a770b5fd0007a1


Hello, For some reason, even though my code appears to be right, I'm getting this error message:
"Did you call fadeTo('slow',0) on the .pink divs?"

Any suggestions? Much appreciated.


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


#2

HI you don't need of the click function so just remove it.


#3

Thats the job! Thanks very much :smile:


#4

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