現在jQuery 3.3.1を読み込んでいるのですが、
下記が実装されません。
jQueryのバージョンを1.x系に落とした場合は動くのですが。。。
<script> $(function() { $('.prodFaqList01 ul > li dt').click(function() { if ($(this).next('dd').is(':visible')) { $(this).next('dd').slideUp(50); $(this).removeClass('open'); } else { $('.prodFaqList01 ul li dd').slideUp(); $('.prodFaqList01 ul li').find('dt').removeClass('open'); $(this).next('dd').slideDown(200); $(this).addClass('open'); } }); }); </script>
回答1件
あなたの回答
tips
プレビュー