Question: You have completed an HTML signup.html in lab1. A task of this assignment is validating user inputs for the signup web page by using external

You have completed an HTML signup.html in lab1. A task of this assignment is validating user inputs for the signup web page by using external JavaScript. We assume all inputs are in English. The validation should satisfy the following requirements:

  1. Using external JavaScript to do the validation, for example, create a validate_signup.js file.
  2. No empty input. All form elements should have an input. If empty input, one alert box only. See image below
  3. Maximum input characters of "Email" is 60 characters.
  4. Maximum input characters of "Username" is 40 characters.
  5. "Password" length is 8 characters.
  6. "Confirm Password" field has to match "Password" field.
  7. For correct user inputs, show the user inputs in an alert window. Othersiwse, warn the user in an alert window.

Note: Output all warnings in one Alert Box, as well as the final result of user inputs.

Sign up form looks like this.

My Signup Page

Email: UserName: Password: Confirm Password:

The following fields must be filled out: Email: Username: Password: Password has to be 8 characters long! Confirm password: LOK

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!