- 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
AlexPosted Jun 17, 2013, 7:41 AM
Blocked AccountPosted Jun 17, 2013, 6:42 AM
Take the reference of this article Click Here
Riyaz AkhtarPosted Jun 17, 2013, 6:23 AM