I have two input fields, where people can write numbers. And what I need is when a person finished writing in this input field some constant words or symbols are left there near his number.
I think that you didn’t get anything from what I wrote above so I will try to explain with this example: 
In the upper there are two inputs you see what person printed himself. And two inputs in the bottom are what he gets when he puts his cursor out of the input where he was printing.
(I don’t need all four inputs, just two…upper two just show the first step and bottom two show the final step)
I think it can be done by javascript… but I couldn’t do it by myself and I couldn’t find anything in web…
I’ve used the following before, the reason I chose using an image over anything else was because text added to an input dynamically can cause confusion, as well as getting in the way when users wish to edit. Using an image meant it could be constantly there and wouldn’t get in the way of the user typing:
It’s only written in jQuery because it was lying around, this could easily be rewritten in pure js – and it could easily be optimised.
http://jsfiddle.net/pafMg/
css:
markup:
code:
In the following code the padding-left and padding-right has to take into account the width of the image you use.
The left aligned version is really simple, the right aligned gets a little bit more complex however: