hiding character in textbox

hiding character in textbox

Hello,

I am new to the jquery.
I have a requirement that user will be entering their ssn in text box on ASP.NET MVC Website.
When user enters digits one by one i want to hide previous digits using *.
So for example
1
*4
**9
***3

Same way if user removes it then it should behave like this
**9
*4
1

i hope someone has a solution of this.

Thanks,

Sandeep