1
I need to mask a 13-character alphanumeric code field while the user types, separated by hyphen, for example: 0DF7M3-R34X21
I’m using a function to apply the mask, so it would be applied as follows:
function mask_code(valor) { valor = valor.replace('ER', '$1-$2'); return valor; }
Grateful for the help.