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;
}
}
Right, you're blocking numbers, but, you should also block keycodes above 57 and you're not :( That is, I want to be able to type only from small 'A to Z'
What's wrong?
onKeyPress="return bloqueiaNumero(event);"