This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Form Input Names should support hashmaps and arrays #690
Comments
this form should work and is supported:
Does it not work for you? What version are you using? Could you produce jsfiddle? |
Could you provide an example of how i could properly do this? I've tried this with 0.10.5 too to no avail. |
working example: http://jsfiddle.net/qGVGh/ |
This was referenced May 29, 2020
This was referenced Dec 23, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to be able to do either of these two solutions:
<input type="checkbox" name="items[id]">
<input type="checkbox" name="items.id{{id}}">
Why?
So that I can refer to 1 variable in the scope and treat it as an array of checkbox values. You can have all the keys set to the value specified by the checkbox (or just 1 by default). This seems a lot more reasonable than having to deal with functions that manually handle the data when you check or uncheck.
The text was updated successfully, but these errors were encountered: