()
| 151 | } |
| 152 | |
| 153 | function getValue() { |
| 154 | const values = {}; |
| 155 | const inputAr = [...$body.getAll("input")]; |
| 156 | inputAr.map(($input) => { |
| 157 | if ($input.type === "checkbox" || $input.type === "radio") |
| 158 | values[$input.id] = $input.checked; |
| 159 | else values[$input.id] = $input.value; |
| 160 | }); |
| 161 | |
| 162 | return values; |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * Creates a group of inputs |