Results 1 to 2 of 2

Thread: Phone Number Validation

  1. #1
    Join Date
    Apr 2009
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Phone Number Validation

    Hi,

    I am looking for a javascript / jQuery code for phone number validation if the phone number has all 0’s in it.

    If the value entered is only zeros, it should display the “Enter a valid value” message.

    I want to prohibit 0, 00, 000000, 000-000-0000, 000.000.0000, etc. ( All possible phone number formats )

    Can anyone help me in it?

    Thanks,
    Devesh

  2. #2
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Codewalkers

    They have a JS and a PHP version..but that was a very long time ago

    Try one of these links to see if it is what you need, you may have to use Reg Expressions though

    http://www.codewalkers.com/c/a/Misce...er-validation/

    http://www.dreamincode.net/code/snippet69.htm

Bookmarks

Posting Permissions

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