Question: HTML GYM Membership Form You need to create a form using Java Script like the one in the attached picture and validate the form using

HTML GYM Membership Form

You need to create a form using Java Script like the one in the attached picture and validate the form using Java Script. Body should be empty, everything should be dynamically created using createElement, appendChild... functions. Before a user is allowed to submit his/her form, your form validation should do the followings:

If all the fields are NOT filled in, then, alert box need to be popped up and not allowing him/her submit the form.

If the zip code contains letters or more/less than 5 digits, then, alert box need to be popped up and not allowing him/her submit the form.

If the credit card number is more/less then 16 digits, alert box need to be popped up and not allowing him/her submit the form.

If the email address doesn't have "@" character, alert box need to be popped up and not allowing him/her submit the form.

If the phone number contains characters, instead of numbers, alert box need to be popped up and not allowing him/her submit the form.

The result of the Form should similar to this image:

HTML GYM Membership Form You need to create a form using Java

CST2309 GYM Membership Member Information First Name: Last Name: Phone Number: Email Address: "Address: State: "Zip: AL v City: Billing Information Billing Information is the same as Member Information. "Card Number: Expiration Date: Month Year Review and Confirm

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!