I use VueJs, i need to extract javascript variable to generate hidden fields.
But i need to set the name by the index of the variable.
I want to use zig-zag nami
I ran across the same problem as you, and here is how i fixed it !
make a method like this in your vue-instance
getInputName(index, dataName){
return "items["+index+"]["+dataName+"]";
}
then you can use it like this:
which will give you this post result:
"items" =>[
0 =>[
"name" => "test"
"price" => "23"
],
1 =>[
"name" => "jakke"
"price" => "99,2312"
]
]
And thats it...
Cheers, Sipman