Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accept Numeric Values Only - TextBox

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
I am using Developer Studio 7.1.4.
I have a Text Box on an HTML form which should be for NUMERIC entry only.

How can I mask it?
Or, how can I provide a script to alert the user that it's not numeric?

Thanks,

Leo ;-)
 
add an onblur event which will validate the text to ensure that only numeric values are in place.

You should be able to find the script in the FAQ javascript section on this site
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top