A complete newcomer to web design/developing I am getting to grips with HTML & CSS but I am a complete novice in all things Javascript.
I have a contact form which has text fields for both a landline and mobile phone. I have adapted the following demo from the following link to validate my form:
I have found some websites on UK phone Regex… however they may as well be in Greek or Mandarin!!!
http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_UK_Telephone_Numbers
http://regexlib.com/REDetails.aspx?regexp_id=3606
The current var phoneRegex as seen in my attachment messages-js is something I borrowed for testing purposes and doesn’t work for UK numbers. I have looked at the links above and tried to replace it but nothing works!
If anyone could help me out with this I’d be eternally grateful!