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:
- Using external JavaScript to do the validation, for example, create a validate_signup.js file.
- No empty input. All form elements should have an input. If empty input, one alert box only. See image below
- Maximum input characters of "Email" is 60 characters.
- Maximum input characters of "Username" is 40 characters.
- "Password" length is 8 characters.
- "Confirm Password" field has to match "Password" field.
- 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: LOKStep by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
