The jQuery toggleClass() method is used to toggle between adding and removing one or more classes from the selected elements. className: A string representing one or more class names to be toggled.
JavaScriptを簡単に扱えるライブラリ「jQuery」の基本的な使い方や読み込み方法、基本構文について解説しています。 クリックやホバーなどのイベント処理や、クラスの付け外しによる表示・アニメーション制御など、LP制作でよく使う実装方法を紹介しています ...
.toggleClass( [boolean] ) is inaccurately documented, (probably) not working correctly, easy to manually implement by library consumers, and I can't even come up with a reasonable use case calling for ...