2
I have the following variable:
var teste = "006BC953F26DAC56C51D61";
and I’d like when to display it to be like this:
console.log(teste); //006B-C953F-26DA-C56C5-1D61
I’m in trouble because it starts with a group of 4 missing and then 5 and so on.
Take a look at this plugin: jQuery Mask. With it you can create your own mask.
– Douglas Garrido
It seems that the mask is simple: '0000-00000-0000-00000-0000'
– Murillo Goulart