6. Selecting by Class



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. 


are you sure you posted the right git?


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


Something like this?


if you would fadeOut correctly, then you should be good

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


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


You're welcome

always, in particular in programming


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