Javascript function to validate billing form

I have a page with order and billing information. All I need is to validate the input values from user. Here are requirements!

First Name (name=first): check for non blank and nonzero length.

Last Name (name=last): check for non blank and nonzero length.

Street Address (name=address): check for non blank and nonzero length.

City (name=city): check for non blank and nonzero length.

State (name=state): check for non blank and nonzero length.

Zip (name=zip): must provide either a 5-digit zip code or a 5+4 zip code (all must be numbers and check for the length. The script must allow the user to enter either 5 digits or 9 digits. So when the user enters 5 digits, it's OK. Another user enters 9 digits, it's also OK).

Telephone number (name=phone): the format must be (xxx) xxx-xxxx.

(Check for the exact format with the numbers. Use only one field for the phone).

EMail (name=email): check for non blank and nonzero length.

Credit card number (max length is 16) (name=ccnum): check for a 16 digit number.

Select list for credit card type (name=cctype)

Credit card expiration date (format is mm/yyyy) (name=ccexpire): check for the format mm/yyyy. (Make sure that the card is valid by comparing with the current date). You can use the date object if you want.

All forms are done, need just Javascript function to validate this form!

[url removed, login to view] file included

Skills: Javascript

See more: validate credit card, numbers function, number function, javascript credit card, function numbers, function number, javascript max, javascript phone format, address name format, code check javascript, object form, user enters file name, javascript order function, want valid email list, validate telephone, function order, billing address email, html validate, javascript user type, validate city name, phone billing, enter phone number form, javascript forms, validate city state zip, valid address city list

About the Employer:
( 22 reviews ) Sunnyvale, United States

Project ID: #5171372

30 freelancers are bidding on average $22 for this job


skilled javascript developer here, have done over 500+ javascript project for my clients, i can do the validation for you, let start now.

$30 USD in 2 days
(43 Reviews)

Hello there! Can be done in like 2 hours, no problem with that. Can do as soon as you decide to move forward. One question though. You have some validation in already there. Should this be built on top of that or r More

$25 USD in 0 days
(87 Reviews)

Hi Viktoriia230, I've read your requirement and I'm interested in your job. With over 5 years experience in Web development, I'm confident to complete it perfectly. I can complete it within few hours. I am ready to d More

$30 USD in 0 days
(41 Reviews)

Hi, I can work that javascript validation. Ready to work now. Please create the milestone first. Regards, Steve

$30 USD in 1 day
(118 Reviews)

I can deliver you this Quickly. Write me back to make all done we are pro in javascripting. Many Thanks. Regards, Ammar Akhtar.

$34 USD in 2 days
(17 Reviews)

Hi, I'm interested to work on your project. Please let me know if you require any detailed information. Waiting for your reply Thanks Dev

$30 USD in 1 day
(29 Reviews)

I have read your project description, i understand what you want, and i would like to offer you my services. I have strong knowledge of JavaScript, plenty of experience with it, most importantly including writing custo More

$30 USD in 1 day
(28 Reviews)

I can validate all the fields. Thanks and regards FROIDEN .............................................

$29 USD in 1 day
(32 Reviews)

Expert is [url removed, login to view] 5+yrs of [url removed, login to view] to start [url removed, login to view] do it [url removed, login to view] the ftp details to start work [url removed, login to view] us to serve you [url removed, login to view] for your reply.....

$28 USD in 1 day
(17 Reviews)

It's easy with me.... Hi there. I am senior developer from Vietnam. I have been working on this site for 2 years. I am interested in your [url removed, login to view] let's me help you.

$25 USD in 1 day
(9 Reviews)

hi, let's do it now. Just tell one thing, you want it to be coded in the validateForm() javascript function in [url removed, login to view] file or elsewhere. thanks.

$20 USD in 0 days
(6 Reviews)

hi javascript expert here and i can do your work. its a easy and interesting for me please allow me to finish [url removed, login to view]

$15 USD in 1 day
(8 Reviews)

Hi, I am Umadevi, having 5+ years of experience in HTML,JavaScript,JQuery,Java,J2EE working in MNC, for developing web based product. I will do this job. Please contact me with the details

$25 USD in 3 days
(5 Reviews)

Hi, i can do this job in an hour. Ready to start right now. See my profile reviews for my fast work! Waiting for your response sir, Thanks, Ali Nawaz Hiraj

$35 USD in 0 days
(2 Reviews)

hi, i am expert in javascript /Jquery ,i can validate all you form which is discribed in project detail. kindly allow me this project,i will start it right now and will be finish in next few hours. kindly allo More

$25 USD in 3 days
(2 Reviews)

Hello, contact me and i will submit the code.. pay only if you are satisfied. I am a Programmer with 2 years of work experiences. I'm familiar with HTML5, CSS3, XHTML, Javascript, JQuery, AJAX, JSON, PHP, M More

$15 USD in 0 days
(4 Reviews)

Hello Sir/Madam, Greeting from Votive Technologies!! We have a good team of dedicated developers, designers and testers for your project with a very well experience in web development field. Have a LOOK at ou More

$43 USD in 0 days
(1 Review)

A proposal has not yet been provided

$15 USD in 1 day
(4 Reviews)

Javascript expert here. I can finish this work within an hour. Give me the project and consider it done.

$30 USD in 3 days
(1 Review)

I can do it urgently..i have exp on javascript.i can do it perfectly & within time frame..we can dicuss more Thank you

$15 USD in 0 days
(1 Review)