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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to limit INPUT TEXT boxes to numbers only? 1

Status
Not open for further replies.

jdegeorge

Programmer
Mar 19, 2002
1,313
US
I have an input box on my web page but don't know how to limit the user to inputting Social Security Number, for example?

Jim DeGeorge [wavey]
 
trollacious

Thanks. There's way more code required than I thought. I'll look through the source of the page and work it out.

Enjoy the star!

Jim

Jim DeGeorge [wavey]
 
That page even breaks down the SSN to the 3 distinct parts, and jumps to the next text box when one is completed. This was to make it as idiot-proof as possible, since it's for college students who seem to have a real difficult time following instructions (wonderful type of people to allow to pass out medications to the world, huh? :)# ).

It's been a couple years (at least) since I wrote that, so I might do it differently now, but it does what it's supposed to, and the company I wrote it for is still using it.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top