document.getElementById("test").innerHTML += " hello two";
This works for me. But only for the first section "test" on my page. I want to add innerHTML inside where I want.
so I have a button, and when I click it, something like this should happen:
$this.find("#test").innerHTML += " hello two";
But this second code will not work.
What am I doing wrong?
source
share