回答編集履歴
2
変数名を変更
test
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
const inpCol = document.getElementsByTagName("input");
|
4
4
|
|
5
|
-
const
|
5
|
+
const eleCol = Array.from(inpCol).filter(input => input.name === "test");
|
6
6
|
|
7
7
|
```
|
1
変数名を変更
test
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
const inpCol = document.getElementsByTagName("input");
|
4
4
|
|
5
|
-
const testCols = Array.from(inpCol).filter(
|
5
|
+
const testCols = Array.from(inpCol).filter(input => input.name === "test");
|
6
6
|
|
7
7
|
```
|