javascript: add html to end of <span> (noob) <p>I am sure there must be an easier way that doing this:</p> <pre><code>foo.innerHTML +="&lt;br&gt;"; </code></pre> <p>The above is producing dirty results as there is a textbox in the SPAN and the data from that textbox gets wiped away when using innerHTML.</p> <p>I am trying to "re-learn" JS so forgive me if the question is too noobish.</p>