View Full Version : how to validate forms

12-12-2004, 05:53 AM
well,i got two field one is icq and another one is age, how can i validate them to be numbers?
also for the email got good validate script?

Willy Duitt
12-12-2004, 07:58 AM
Use either isNaN() or a regular expression match(/^\d$/g) to validate for numbers only...

Search the forum for email validation scripts...
There are numerous regular expression examples as well as subString() methods which have been posted in the past...