My Fiddle: http://jsfiddle.net/gVwPw/3/
I have searched and found:
- Jquery multidimensional arrays
- How can I create a javascript associative array { } with dynamic key names?
- Jquery creating associative array with dynamic keys and multiple values
However I can't do what I'm trying still.
I have built an order entry page online, and they can dynamically add new lines to the order. each new line should be an array containing the details, like this (I'm using PHP as the array format here since I don't know proper javascript formatting)
Array
(
[order_line_1] => Array
(
[sku] => afd433
[uom] => CS
[quantity] => 5
)
)
I can't get it to store in this fashion. I've tried many methods. Help?!