6. Selecting By Class

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/web-beginner-en-GfjC6/1/2?curriculum_id=50a3fad8c7a770b5fd0007a1#

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

i keep getting an error and i wonder what i’m doing wrong



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


What error? I just tried it and it works.

When you hit Save & Submit, does it go full screen and when you click Click me, does it work? After that it should let you pass the exercise when you leave full screen.

2 Likes

I have the same probleme, everything works fine when i click on click me but i can’t pass the exercice. And i have this error : " $e(…).a.cacher is not a function ".

As ghost said, your code is working fine. So there’s nothing wrong with it on that end. However, sometimes Codecademy does experience a bug. Try copy and pasting your code then refreshing your browser. Restarting your broswer etc. can also fix this issue if a simple refresh does not.

Hi,

I have the same problem with this exercise.

Bests regards.

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