回答編集履歴

2

修正

2017/03/13 03:32

投稿

yambejp
yambejp

スコア114769

test CHANGED
@@ -10,9 +10,9 @@
10
10
 
11
11
  $("#test tr").on("click", function(){
12
12
 
13
- $(this).find('td:not(:eq(1),:eq(11))').toggleClass('clicked');
13
+ $(this).find('td:not(:eq(1),:eq(10))').toggleClass('clicked');
14
14
 
15
- // $(this).find('td').filter(function(i){return i!==1 && i!==11;}).toggleClass('clicked');
15
+ // $(this).find('td').filter(function(i){return i!==1 && i!==10;}).toggleClass('clicked');
16
16
 
17
17
  });
18
18
 

1

修正

2017/03/13 03:32

投稿

yambejp
yambejp

スコア114769

test CHANGED
@@ -10,10 +10,14 @@
10
10
 
11
11
  $("#test tr").on("click", function(){
12
12
 
13
+ $(this).find('td:not(:eq(1),:eq(11))').toggleClass('clicked');
14
+
13
- $(this).find('td').filter(function(i){return i!==1 && i!==11;}).toggleClass('clicked');
15
+ // $(this).find('td').filter(function(i){return i!==1 && i!==11;}).toggleClass('clicked');
14
16
 
15
17
  });
16
18
 
17
19
  });
18
20
 
19
21
  ```
22
+
23
+ ※ちょっと修正