Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2004
    Posts
    713
    Thanks
    6
    Thanked 2 Times in 2 Posts

    how to validate forms

    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?

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...

    .....Willy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •