I have a script that successfully adds input fields based on a users selection.
For example
<input name=test[] value="1">
<input name=test[] value="2">
However, when the form is submitted these values (array) do not show up in the post.
If I add them to the html it works so is clearly a result of the html having been added to the DOM by javascript.
I have also tried $('name[coupon]').serialize().replace('%5B%5D', '[]'); on submit (where coupon is the name of the form) - but no joy!
Any advice please?