回答編集履歴
2
修正
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(1
|
13
|
+
$(this).find('td:not(:eq(1),:eq(10))').toggleClass('clicked');
|
14
14
|
|
15
|
-
// $(this).find('td').filter(function(i){return i!==1 && i!==1
|
15
|
+
// $(this).find('td').filter(function(i){return i!==1 && i!==10;}).toggleClass('clicked');
|
16
16
|
|
17
17
|
});
|
18
18
|
|
1
修正
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
|
+
※ちょっと修正
|