This repository was archived by the owner on Feb 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdemo.html
More file actions
113 lines (107 loc) · 3.38 KB
/
demo.html
File metadata and controls
113 lines (107 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", 1);
</script>
<script type="text/javascript" src="jquery.serializefullarray.js"></script>
<script type="text/javascript">
$(document).ready(function() {
console.dir($('#example input[name^=array]').serializeFullArray());
console.dir($('#example').serializeFullArray());
console.dir($('form').serializeFullArray());
});
</script>
</head>
<body>
<form id="example">
<input name="this" />
<input name="that" />
<input name="other" />
<br />
<input name="mini[arr1]" />
<input name="mini[arr2]" />
<input name="mini[arr3]" />
<br />
<input name="array[1][name]" />
<input name="array[1][email]" />
<input name="array[2][name]" />
<input name="array[2][email]" />
<input name="array[3][name]" />
<input name="array[3][email]" />
<input name="array[4][name]" />
<input name="array[4][email]" />
<input name="array[5][name]" />
<input name="array[5][email]" />
<input name="array[6][name]" />
<input name="array[6][email]" />
<input name="array[7][name]" />
<input name="array[7][email]" />
<br />
<input type="hidden" name="chkbox[1]" value="0" />
<input type="checkbox" name="chkbox[1]" value="1" />
<input type="hidden" name="chkbox[2]" value="0" />
<input type="checkbox" name="chkbox[2]" value="1" />
<input type="hidden" name="chkbox[3]" value="0" />
<input type="checkbox" name="chkbox[3]" value="1" />
<input type="hidden" name="chkbox[4]" value="0" />
<input type="checkbox" name="chkbox[4]" value="1" />
<br />
<input type="hidden" name="radiobox" value="0" />
<input type="radio" name="radiobox" value="1"/>
<input type="radio" name="radiobox" value="2"/>
<input type="radio" name="radiobox" value="3"/>
<input type="radio" name="radiobox" value="4"/>
<br />
<select name="select">
<option>Value1</option>
<option>Value2</option>
<option>Value3</option>
<option>Value4</option>
<option>Value5</option>
</select>
</form>
<form id="example-two">
<input name="this" />
<input name="that" />
<input name="other" />
<br />
<input name="mini[arr1]" />
<input name="mini[arr2]" />
<input name="mini[arr3]" />
<br />
<input name="set[1][name]" />
<input name="set[1][email]" />
<input name="set[2][name]" />
<input name="set[2][email]" />
<input name="set[3][name]" />
<input name="set[3][email]" />
<input name="set[4][name]" />
<input name="set[4][email]" />
<input name="set[5][name]" />
<input name="set[5][email]" />
<input name="set[6][name]" />
<input name="set[6][email]" />
<input name="set[7][name]" />
<input name="set[7][email]" />
<br />
<input type="checkbox" name="chkbox[1]" />
<input type="checkbox" name="chkbox[2]" />
<input type="checkbox" name="chkbox[3]" />
<input type="checkbox" name="chkbox[4]" />
<br />
<input type="radio" name="radiobox" value="1"/>
<input type="radio" name="radiobox" value="2"/>
<input type="radio" name="radiobox" value="3"/>
<input type="radio" name="radiobox" value="4"/>
<br />
<select name="select">
<option>Value1</option>
<option>Value2</option>
<option>Value3</option>
<option>Value4</option>
<option>Value5</option>
</select>
</form>
</body>
</html>