0
Good afternoon to all.
I need to create a mask for a text field to mask credit card in the following format:
Without mask: 4854 5654 2245 5654
Masked: 4854 xxxx xxxx 5654
Does anyone know how I can do this in the text field?
0
Good afternoon to all.
I need to create a mask for a text field to mask credit card in the following format:
Without mask: 4854 5654 2245 5654
Masked: 4854 xxxx xxxx 5654
Does anyone know how I can do this in the text field?
Browser other questions tagged javascript
You are not signed in. Login or sign up in order to post.
I don’t know if it’s a good idea to do this on the client side (javascript). It would be better to already take to the client side the string formatted without the full number (with mask) for security reasons.
– Marco Giovanni
@Marcogiovanni, the problem is that it is a login form. The credit card is the login of the user, that is, it type the card. I need to mask how much he types.
– Thiago Henrique
I always use this plugin http://digitalbush.com/projects/masked-input-plugin/ suits me well.
– Wagner Soares
this plugin can not do what I need, unfortunately. it even creates the mask, but does not hide the middle numbers...
– Thiago Henrique