toggleClass yajirushi hennkou

<script> $(function(){ $("#acMenu dt").on("click", function() { $(this).next().slideToggle(); $(this).toggleClass("active");//追加部分 }); }); </script> #acMenu dt.active{ background:url(---) --px --px no-repeat; } 「.addClass()」や「.removeClass()」がいらない

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.