Basically, I have a loop incrementing i, and I want to do this:
var fish = { 'fishInfo[' + i + '][0]': 6 };
however this will not work.
Any ideas how to do this? I want the result to be
fish is { 'fishInfo[0][0]': 6 }; fish is { 'fishInfo[1][0]': 6 }; fish is { 'fishInfo[2][0]': 6 };
and etc.
I use $ .merge to combine them if you think why he does it :)
source share