[eluser]sqwk[/eluser]
I am duplicating part of a form using jquery (Tabs). The data structure that I want to get from the form is something like this:
Code:
-field
-field
-tabs
-tab 1
-field
-field
-tab 2
-field
etc…
How would I name the fields to prevent the form fields in tab 2 overwriting the ones in tab 1?
I know I can specify an array like so field[] but within the tabs I also have checkboxes that will need to go in their own array.
Code:
tab[][checkboxes][] // this will only work with a key of the tab
tab[tabkey][checkboxes][]
Since the fields are duplicated by jquery later, how do a) name the field, b) keep the validation working and c) extract my data?