I've got this snippet of code..
var test_a = "<?php echo $a ?>"
console.log (test_a);
This shows 1.576.21422
which is correct.
But when I try the same here I don't get the result I was expecting.. I get the variable name.
I know in this test fieldData[0] = 'a'
console.log ("test_" + fieldData[0])
Instead of showing 1.576.21422 I get test_a
Can someone point me in the right direction for this... Thanks