L
Leroy
I have this function:
function ValidateIntKey()
{
var Key;
var CharKey;
Key = event.keyCode;
alert(Key);
//CharKey = String.charCodeAt(Key);
alert(String.fromCharCode(Key));
CharKey = String.fromCharCode(Key)
if (!isInteger(CharKey))
{
alert("no integer");
}
}
Where i have "alert("no integer");" i want to make the keyCode null so
that it doesn't reach the textbox this function is attached to. How
do i do this? I tried:
event.keyCode = 0; but this did not work. Any other ideas?
function ValidateIntKey()
{
var Key;
var CharKey;
Key = event.keyCode;
alert(Key);
//CharKey = String.charCodeAt(Key);
alert(String.fromCharCode(Key));
CharKey = String.fromCharCode(Key)
if (!isInteger(CharKey))
{
alert("no integer");
}
}
Where i have "alert("no integer");" i want to make the keyCode null so
that it doesn't reach the textbox this function is attached to. How
do i do this? I tried:
event.keyCode = 0; but this did not work. Any other ideas?