@_____SK_____

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

toggleClass

jQueryである要素をクリックしたときの処理で、クリックしたらその要素にactiveクラスを与えるというのに
toggleClass
を使ったのですが二回クリックしないと反映されず困っています。
どうすればいいでしょうか?
エラーなし

$(".c-header--btn").click(function(){
    $(this).toggleClass('active');
});
0 likes

No Answers yet.

Your answer might help someone💌