I am trying in a form to format a SSN ,that each time I enter a key it must change to "*" within 2 seconds while leaving the last digit shown. It also should be masked with (999-99-999) format. For example the final value should be like: " ***-**-***9 " in the input field.
I have tried with Masked input plugin but it's not turning into "password" like within 2 seconds.
How do you do this with jQuery?
I looked for other Stackoverflow questions like this, but I couldn't find anything like my issue or expectation. Especilally this question SSN Masking
$("#ssnId").unmask().maskSSN('999-99-9999', {maskedChar:'*', maskedCharsLength:10});
this is my form
<input type="text" id="ssn" class="form-control" required="required" autocomplete="off" />