Friday, August 21, 2015

Return of false for onkeypress event no longer blocks input

http://forums.asp.net/t/1118932.aspx?Return+of+false+for+onkeypress+event+no+longer+blocks+input


 Return of false for onkeypress event no longer blocks input

06-06-2007 01:30 PM|LINK
I did find out how to solve my problem.  By changing the onkeypress event from:
onkeypress="return validNumeric(event);"  to
onkeypress="event.returnValue=validNumeric(event);"
 I now get the form to limit input in the zipcode textbox to numbers only and also keep the DefaultButton property on the Panel it is contained 

No comments:

Post a Comment