i have following row in 2 nested for loops:
document.getElementById("sm" + i + "b" + j).innerHTML = jsonval.values.sm1b1;
^^^^^^
i would need to change the variable in the loop like the id of the element. so "sm" + i + "b" + j
but to do so I need to have it as a string.. how can I access the variable dynamically by generating the variable name?