elementの使い方

$("button").click(function() {
  alert("ボタンをクリックしました!");
});

<button>警告を表示する</button>