2
Good morning, you guys. I have this mask made and I need it to block text in the textbox field of my application, but I can’t imagine in any way to do that. (Noob) Could someone 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;
}
}
You can explain better what it is
ExibeMens
and what do you mean by "block text in the textbox field of my application"? you can put HTML you are using?– Sergio