Hi,
I'm don't want the character ',' be print in the input text box, but I can do it work. Here is the code
function fieldNumber(objeto, e){
if(window.event && e.keyCode == 188){ // this is the keycode for IE & Firefox
keynum=e.keyCode;
e.keyCode=0;
return false;
}else if(e.which =44){// this is the opera's keycode
e.which = 0;
return false;
}
return true;
}
<input type="text" name="pepe" onkeydown=" return fieldNumber(this, event)" />
Could someone help me please?
Any help is welcome.-
Regards



Reply With Quote

Bookmarks