<p id="point">ボタンをクリックすると表示・非表示を繰り返すよ!</p>
<button id="btn">ボタン</button>
body{
  text-align:center;
}
$("#btn").on("click", function () {
  $("#point").toggle();
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js