fischadler
Programmer
Please consider the code below:
I use it to stop people from entering text other than numeric values in a textbox. It works fine in IE but disallows all keystrokes in Firefox. Is there a way I can get it to work as it should in both browsers?
Thanks!
-Fischadler
Code:
onkeypress="return '0123456789.'.indexOf(String.fromCharCode(event.keyCode))>-1"
Thanks!
-Fischadler