回答編集履歴

1

コード修正

2021/01/19 13:40

投稿

hatena19
hatena19

スコア33715

test CHANGED
@@ -5,8 +5,6 @@
5
5
  ```css
6
6
 
7
7
  $(document).ready(function () {
8
-
9
-
10
8
 
11
9
  $('#category_all').on('click', function () {
12
10
 
@@ -36,7 +34,7 @@
36
34
 
37
35
  }
38
36
 
39
- $(this).closest('li').children('ul').slideToggle();
37
+ $(this).nextAll('ul').slideToggle();
40
38
 
41
39
  });
42
40