I am doing some calculations and I want to display the results to some textFields. I have them named textField0 thru textField19.
I am trying this:
for(n=1; n<shox_stroke; n++)
{
document.getElementById(‘m1-air_spring-textField[n]’).value = n +” = ” + wheel_rate.toFixed(0);
}
it does not seem to follow the n variable.
how do I put the n variable to the textField name to loop to each textField ?
Thanks for any help