質問するログイン新規登録

回答編集履歴

1

修正

2018/06/21 11:21

投稿

s8_chu
s8_chu

スコア14731

answer CHANGED
@@ -80,7 +80,7 @@
80
80
  $(function () {
81
81
  $('#dropmenu a').siblings().hide().end().click(function (event) {
82
82
  $(this).siblings().toggle();
83
- $("#dropmenu .dropitem ul").not($(this).siblings()).hide(); // 追記
83
+ $(".dropitem ul").not($(this).parents(".dropitem").find("ul")).hide(); // 追記
84
84
  event.preventDefault();
85
85
  return false;
86
86
  });