0
Opa,
Very simple thing that I did not find something similar, I decided to create, I did:
function bloqueiaNumero(texto)
{
var tecla = new String();
if (window.event) {
tecla = texto.keyCode;
}
else if (texto.which) {
tecla = texto.which;
}
else {
return true;
}
if (((tecla < 48) || (tecla > 57)) && (tecla = 8))
{
return true;
}
else
{
return false;
}
}
Okay, it’s blocking numbers, but it should also block keycodes above 57 and it’s not :( That is, I want it to be possible to type only from 'A to Z' minuscule
What’s wrong?
onKeyPress="return bloqueiaNumero(event);"