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

Oops, try again. Please follow the instructions on the Full Preview page to test your code.
“when i click button nothing happens.”

```

Replace this line with your code.

<do not remove the three backticks above>

are you sure you posted the right git?

2 Likes

I think so. Why?

this is the jquery code in your gist:

// Write your jQuery code below!
$div = $('div');

I see the problem now, line 3 $('vanish') will select element vanish (which doesn’t exist), it should target class vanish

2 Likes

Something like this?

if you would fadeOut correctly, then you should be good

jquery is a JS library, so cammel-case is often used

2 Likes

Thanks a lot. The devil is in the details…:sunglasses:

You’re welcome

always, in particular in programming

2 Likes

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