6. Selecting by class


#1

Hi Guys!
I thinks there's some kind of bug in this exercice.
I solved the problem and moved on, but the code it's not working at all, because when i click the button nothing happens, and i don't know why.
Am i doing something wrong? Or it's bug?


$(document).ready(function() {
    $('button').click(function() {
        $('.vanish').fadeOut('slow'() {
    });
    });
});


#2

Ok i figured out.
I was closing to many functions.

The last one:

  $('.vanish').fadeOut('slow'() {
    });

It's just:

  $('.vanish').fadeOut('slow');

I wonder how the system let me advance to the next exercise :confused:


#3

The SCT may not have checked for console errors and found everything it was looking for in your code. This happens. It is good that you stuck it out and found your error.


#4

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