General
Simple telephone number validation. This script makes sure the user enters only numbers, brackets, hyphens, or spaces. A plus (+) may be entered as the first character. Just add it to your form validation routine.
Notes
- Created by: Rob Sheldrake
- Web Site: http://www.sites4biz.co.uk
- Posted: March 23, 2007
Implement with onkeyup="validatephone(this);" on desired field
Add any symbols after the '@' symbol in the line of characters to block characters such as brackets
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: liveTeleNumValidation.js
Head
Paste this code into the HEAD section of your HTML document.
Body
Paste this code into the BODY section of your HTML document
Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.
