- Create an external JavaScript file to validate the form fields before allowing the user to submit the form. In particular you must:
- Check all required fields have been filled in
- Check the email address contains an "@" character and "."
- Check the postcode contains 4 numbers (not characters)
- Validate the credit card number has 16 numbers and the expiry date month and year must be validated against the current date.
* means you must fill in the details.
Your details:
* Name:* Address:
* Suburb: * Postcode:
* Email address:
Orders:
Credit card details:
* Type: AMEX Visa MasterCard Diners Club Bankcard * Expiry date: 01 02 03 04 05 06 07 08 09 10 11 12 2012 2013 2014 2015
I don't know how to do error messages for all textboxes

Riyaz AkhtarRank #2,275 · 619 reputationPosted Jun 17, 2013, 2:23 AM EDT
Blocked AccountRank #403 · 6.2K reputationPosted Jun 17, 2013, 2:42 AM EDT
Take the reference of this article Click Here
Alex50 reputationPosted Jun 17, 2013, 3:41 AM EDT