I have HTML input elements with names like A[1]
, A[2]
, A[3]
. I want to catch them in express this way:
var optcount = i + 1;
var columnA=req.body['A['+optcount+']'];
However it does not work.
If I have names like A1
, then this works:
var columnA=req.body['A'+optcount];
Any suggestions?