I do not understand what's the problem?

jquery

#1

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

everything works, but when I click on the "save & submit code" pops Oops, try again. Did you call .click () on $ ('button')?
What's the problem I do not understand.


#2

The lesson doesn't tell you that $ defines a variable, it tells you to make a variable $name

you still need to call a variable with the var keyword;

var $but = $('button');
$but.click(function() {}

#3

Nothing has changed, it's just a glitch. The problem was solved. Just had to wait a few seconds after pressing the button. Thanks for the response =)