Good morning, people.
I have this mask made and I need it to block text in the textBox field of my application, but I can not imagine in any way to do this. (noob)
can anybody help me?
function Mascara(src, mascara) {
try{
var campo = src.value.length;
var saida = mascara.substring(0, 1);
var texto = mascara.substring(campo);
if(texto.substring(0, 1) != saida) {
src.value += texto.substring(0, 1);
}
}catch (e){
ExibeMens ("Ocorreu exceção durante execução !" + e.description, true);
return false;
}
}