hi
i am trying to check each character entered and make sure it is only an alpha-numeric char
function keyCheck(e){
var keyChar = String.fromCharCode(e.which);
//here is where u would have to check the key then
}
document.captureEvents(Event.KEYPRESS);
document.onkeypress = keyCheck;
i know in
Java u can use char.isLetterorDigit(myString.charAt(index))
but how can this be done in javascript??
thanx