View Single Post
  #1 (permalink)  
Old April 8th, 2010, 06:19 AM
Hannibal Hannibal is offline
Authorized User
Join Date: Feb 2006
Location: Bangalore, Karnataka, India.
Posts: 63
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Hannibal
Default Validate numeric and decimal data during keypress event


I am using classic ASP and Javascript

How to restrict the user to only enter integer or decimal values and cannot enter text in my TextBox field. The user should be able to type only one decimal point

For example: 3.45 is valid while 3.34. is invalid

I want to validate in javascript during the key press event in the textbox.

Please help.
Thank you
Reply With Quote