Monday, June 7, 2004 08:39 AM
What you have to do is:
putin the "onkeypress" property this JS:
onkeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"
thay way the textbox only will accept numbers.
There is only one bad thing about that JS, it only works with Internet Explorer because other browsers work differntly with events.
Wednesday, May 19, 2004 11:41 AM