Results 1 to 3 of 3

Thread: How to set validation of phone numbers like design?

  1. #1
    Join Date
    Sep 2005

    How to set validation of phone numbers like design?

    How to set validation of phone numbers like design?
    Attached Images Attached Images

  2. #2
    Join Date
    Jul 2013
    Voorheesville NY USA
    If I really really had to do this, I would just use js to validate the number and re-format after the user has made his entire entry. Of course - you would then have to remove this formatting before storing it to keep it in a easily useable format in your db. I would never store a telephone number like that.

    Something like:
    <input type='text' name='telno' id='telnoid' size=10 onchange='return validateTelNo("telnoid")'>

  3. #3
    Join Date
    Mar 2007
    formatting, it looks nice but in all cases is not really necessary.

    you only need to know that all characters are numerical, allow people to format how they are used to, when you submit to a database then store the number in whatever format that floats your boat.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles