I have the following:
<div id="valueboxes" style="overflow-x:hidden;overflow-y:scroll;width:100%;height:200px">
However, every time I use the following:
document.getElementById("valueboxes").innerHTML = html;
I get this error:
'innerHTML': object is null or undefined
Am I doing something wrong?
The html is a table var being appended too by javascript in a for loop using +=
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…