JQuery lesson 01 e01

HTML

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $(".test").hide();
  });
});
</script>
</head>
<body>

<h2 class="test">Toto je nadpis</h2>

<p class="test">Toto je odstqvec.</p>
<p>Toto je další odstavec.</p>

<button>Klini</button>

</body>
</html>