<script>
function onkeydown(){
var ch = String.fromCharCode(event.keyCode);
var filter = /[a-zA-Z]/ ;
if(!filter.test(ch)){
event.returnValue = false;
}
}
</script>
This can restrict the user to input only characters, but you still have to consider that user can paste numbers, or drag in into textbox.