I have created a span on top of an input field, basically to manipulate the styling of the input text (fiddle).
It works great as long as you don't type past the input box border, or this happens:
Now, I learned that you could have the same scrolling effect as input for the span, like this:
white-space: nowrap;
overflow: hidden;
But, since I am not typing in the span directly, but just updating the innerHTML, this has no effect.
Is there a way I can update the span, so it would treat the updates as typing?