In my code I have a line which multiplies one value by another and this works well - see attached code line
however, when I changed the code to add the two values together I get an error message
SCRIPT1004 Expected ;
Both the array value and the textfield values are numbers. Can anyone explain why changing the * to a + is causing these problems and how can I resolve it.
This first code works
_temp = eval(eval(document.getElementById('textfield'+j).value)*arr_ECL[i][_ind]);
This next code does not work
_temp = eval(eval(document.getElementById('textfield'+j).value)+arr_ECL[i][_ind]);