0

I just finished making an order form that now needs validation scripts. I'm fairly new to javascript so I'm not sure where to even start. I know that there free validation scripts on the internet, but there are not any that are specific to my needs. The main issue is that I want my form to validate both US and international phone numbers and addresses. How can I go about doing this?

Thanks in advance for answering my amateur question!

0

3 Answers 3

1

Here is a small collection of how you can create small javascript functions to validate your form. I would suggest to look into Regular Expressions in Javascript

http://rgagnon.com/jsdetails/js-0063.html

Sign up to request clarification or add additional context in comments.

Comments

0

How about the jQuery Validation Plugin I'v used it successfully.

Comments

0

...or the MooTools equivalent. Either way, it's worth using a framework rather than rolling your own. Internationalization is one of the things that it's best to avoid writing yourself if you can help it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.