Wondering why I can\'t get document.getElementById(\"my_div\").innerHTML to update the DOM when I re-assign the variable. For example:
For future googlers my problem was that I was calling the plural elements.
document.getElementsByClassName(‘class’).innerHTML
So it returned an Array not a single element. I changed it to the singular.
document.getElementByClassName(‘class’).innerHTML
That made it so I could update the innerHTML value.