170
rated 0 times
[
175]
[
5]
/ answers: 1 / hits: 66690
/ 11 Years ago, wed, november 6, 2013, 12:00:00
I'm generating content dynamically and in some instances, I need to set a
as the only content of a <span>
element.
However, the following adds
as text vs adding a empty space:
var foo = document.createElement(span)
foo = document.createTextNode( );
which makes sense, so I'm wondering, how would I add
correctly without (!) using innerHTML
Thanks for help!
More From » whitespace