回答編集履歴
2
修正
answer
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
```Javascript
|
|
5
5
|
$(function(){
|
|
6
6
|
$("#test tr").on("click", function(){
|
|
7
|
-
$(this).find('td:not(:eq(1),:eq(
|
|
7
|
+
$(this).find('td:not(:eq(1),:eq(10))').toggleClass('clicked');
|
|
8
|
-
// $(this).find('td').filter(function(i){return i!==1 && i!==
|
|
8
|
+
// $(this).find('td').filter(function(i){return i!==1 && i!==10;}).toggleClass('clicked');
|
|
9
9
|
});
|
|
10
10
|
});
|
|
11
11
|
```
|
1
修正
answer
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
```Javascript
|
|
5
5
|
$(function(){
|
|
6
6
|
$("#test tr").on("click", function(){
|
|
7
|
+
$(this).find('td:not(:eq(1),:eq(11))').toggleClass('clicked');
|
|
7
|
-
$(this).find('td').filter(function(i){return i!==1 && i!==11;}).toggleClass('clicked');
|
|
8
|
+
// $(this).find('td').filter(function(i){return i!==1 && i!==11;}).toggleClass('clicked');
|
|
8
9
|
});
|
|
9
10
|
});
|
|
10
|
-
```
|
|
11
|
+
```
|
|
12
|
+
※ちょっと修正
|