<p id="point">ボタンをクリックすると表示・非表示を繰り返すよ!</p> <button id="btn">ボタン</button>
body{ text-align:center; }
$("#btn").on("click", function () { $("#point").toggle(); });
This Pen is owned by WEBエンジニア Wiki on CodePen.
See more by @WEB-Wiki on CodePen
This Pen doesn't use any external CSS resources.