The title tells the story what this post is all about.
Firstly, there are many input-masking jquery plugin which can do this,
BUT I want it to be with css, so made it.
This is pretty simple once you see it, just give it a try,
For having this, we will need an input field wrapped inside a div(or whatever tag you want). We are using
.dollar class for that wrapper.
So, your HTML will be like :
And this will be our
THAT’S IT. 🙂