質問編集履歴

2

修正

2022/08/11 22:20

投稿

hwomamy
hwomamy

スコア3

test CHANGED
File without changes
test CHANGED
@@ -2,23 +2,25 @@
2
2
  複数のformの一括送信をするにはどうすればいいのでしょうか?
3
3
  ================================
4
4
 
5
+ ```ここに言語を入力
5
- - <script>
6
+ <script>
6
- - function addStr(s){
7
+ function addStr(s){
7
- - document.querySelector("#myArea").value += s;
8
+ document.querySelector("#myArea").value += s;
8
- - }
9
+ }
9
- - </script>
10
+ </script>
10
- -
11
- - <div style="display:inline-flex">
12
- - <input type="button" value="一括送信"
13
- - onclick="
14
- - javascript:(function(t,i){for(;i<t.length;i++){t[i].click()}})(document.querySelectorAll('input[value=■OK]'),0);
15
- -
16
- - <form action="https://●●.com/a.cgi" method=post target="_blank">
17
- - <input type=text name=name value="01"><input type=submit value="■OK"></form>
18
- -
19
- - <form action="https://●●.com/a.cgi" method=post target="_blank">
20
- - <input type=text name=name value="02"><input type=submit value="■OK"></form>
21
11
 
12
+ <div style="display:inline-flex">
13
+ <input type="button" value="一括送信"
14
+ onclick="
15
+ javascript:(function(t,i){for(;i<t.length;i++){t[i].click()}})(document.querySelectorAll('input[value=■OK]'),0);
16
+
17
+ <form action="https://●●.com/a.cgi" method=post target="_blank">
18
+ <input type=text name=name value="01"><input type=submit value="■OK"></form>
19
+
20
+ <form action="https://●●.com/a.cgi" method=post target="_blank">
21
+ <input type=text name=name value="02"><input type=submit value="■OK"></form>
22
+
23
+ ```
22
24
  ================================
23
25
 
24
26
  このようなタグで異なるformの複数一括送信自体は問題なくできるのですが

1

修正

2022/08/11 19:24

投稿

hwomamy
hwomamy

スコア3

test CHANGED
File without changes
test CHANGED
@@ -2,22 +2,22 @@
2
2
  複数のformの一括送信をするにはどうすればいいのでしょうか?
3
3
  ================================
4
4
 
5
- <script>
5
+ - <script>
6
- function addStr(s){
6
+ - function addStr(s){
7
- document.querySelector("#myArea").value += s;
7
+ - document.querySelector("#myArea").value += s;
8
- }
8
+ - }
9
- </script>
9
+ - </script>
10
-
10
+ -
11
- <div style="display:inline-flex">
11
+ - <div style="display:inline-flex">
12
- <input type="button" value="一括送信"
12
+ - <input type="button" value="一括送信"
13
- onclick="
13
+ - onclick="
14
- javascript:(function(t,i){for(;i<t.length;i++){t[i].click()}})(document.querySelectorAll('input[value=■OK]'),0);
14
+ - javascript:(function(t,i){for(;i<t.length;i++){t[i].click()}})(document.querySelectorAll('input[value=■OK]'),0);
15
-
15
+ -
16
- <form action="https://●●.com/a.cgi" method=post target="_blank">
16
+ - <form action="https://●●.com/a.cgi" method=post target="_blank">
17
- <input type=text name=name value="01"><input type=submit value="■OK"></form>
17
+ - <input type=text name=name value="01"><input type=submit value="■OK"></form>
18
-
18
+ -
19
- <form action="https://●●.com/a.cgi" method=post target="_blank">
19
+ - <form action="https://●●.com/a.cgi" method=post target="_blank">
20
- <input type=text name=name value="02"><input type=submit value="■OK"></form>
20
+ - <input type=text name=name value="02"><input type=submit value="■OK"></form>
21
21
 
22
22
  ================================
23
23