6. Selecting by Class


#1


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

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. 
https://gist.github.com/5d5c44f8d5d26bd95ba6b7db95faf7f9


#2

are you sure you posted the right git?


#3

I think so. Why?


#4

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


#5

Something like this?


#6

if you would fadeOut correctly, then you should be good

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


#7

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


#8

You're welcome

always, in particular in programming


#9

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