For
<myDIV id="myInput" contenteditable="true"></myDIV>
I want to set "abcdefg " with a space behind.
Doing this
var myInputDIV = document.getElementById("myInput");
myInputDIV.innerHTML = "abcdefg "; //does not work
myInputDIV.textContent = "abcdefg "; //does not work
How to make sure that I get the space behind? Currently, the string shown in the div is just "abcdefg", without the space.
Thanks.