Live Telephone Number Validation
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


Leave a Response
(5 comments)Thanks for sharing this.
thats a nice code thanks dude.... :-)
Its really helpful man... thank you..:-)[br /] Keep going...
Hi.. it is very nice man, keep it up... It helps really helps for me a lot.[br /][br /]Thank you,[br /]Reddy Prasad
Great stuff,and very useful to me