Selecting by ID


#1



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


Everything looks right to me, but for all the divs are disappearing still. Am I missing something?


$(document).ready(function() {
    $('button').click(function() {
        $('div').fadeOut('#blue');
    });
});


#2

HI the id of the div is #blue so you should change it here

$('div').fadeOut('#blue');

where you put '#blue' you should put how fast it will fadeOut which should be 'slow' then where you have 'div' put #blue


#3

Ah! Wonderful, thank you so much!


#4

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