質問編集履歴
4
form2 input name 修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,9 +7,9 @@
|
|
7
7
|
</form>
|
8
8
|
|
9
9
|
<form id="form2" action="hogehoge" method="post">
|
10
|
-
<input type="text" name="
|
10
|
+
<input type="text" name="huga1" value="data2-1">
|
11
|
-
<input type="text" name="
|
11
|
+
<input type="text" name="huga2" value="data2-2">
|
12
|
-
<input type="text" name="
|
12
|
+
<input type="text" name="huga3" value="data2-3">
|
13
13
|
<input type="submit" value="送信">
|
14
14
|
</form>
|
15
15
|
```
|
3
form2 input type 変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,9 +7,9 @@
|
|
7
7
|
</form>
|
8
8
|
|
9
9
|
<form id="form2" action="hogehoge" method="post">
|
10
|
-
<input type="
|
10
|
+
<input type="text" name="hoge2" value="data2-1">
|
11
|
-
<input type="
|
11
|
+
<input type="text" name="hoge2" value="data2-2">
|
12
|
-
<input type="
|
12
|
+
<input type="text" name="hoge2" value="data2-3">
|
13
13
|
<input type="submit" value="送信">
|
14
14
|
</form>
|
15
15
|
```
|
2
nameを配列へ
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
```html
|
2
2
|
<form id="form1">
|
3
|
-
<input type="checkbox" name="
|
3
|
+
<input type="checkbox" name="hoge[]" value="data1-1">
|
4
|
-
<input type="checkbox" name="
|
4
|
+
<input type="checkbox" name="hoge[]" value="data1-2">
|
5
|
-
<input type="checkbox" name="
|
5
|
+
<input type="checkbox" name="hoge[]" value="data1-3">
|
6
6
|
<div id="getData">GET</div>
|
7
7
|
</form>
|
8
8
|
|
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,5 +15,6 @@
|
|
15
15
|
```
|
16
16
|
|
17
17
|
上記のイメージでform1のチェックボックス選択で取得した結果valueをform2に渡してsubmitしたいと考えています。
|
18
|
-
このような実装は
|
18
|
+
このような実装は可能でしょうか?色々と調べたのですが解決に至らず質問させていただきます。
|
19
|
+
解決に至るscript等ありましたら
|
19
|
-
申し訳ありませんがご教授
|
20
|
+
申し訳ありませんがご教授願います。
|