
Hands on Exercises
- Create the following form using HTML and validate all fields using Javascript
- Username
- Cannot be blank
- Cannot accept special characters
- Email Id
- Cannot be blank
- Should accept id with @ and “.” present
- Password
- Cannot be blank
- Length Should be minimum 6 character
- Confirm Password
- Cannot be blank
- Password and Confirm password should be same
Diagram 1
Criteria for accepting data
Solve this example using alert and error Div error messages
- Create the following user details Form using HTML and validate all fields using Javascript
Diagram 2
Criteria for accepting data
- First Name
- Cannot be blank
- Cannot accept special characters
- First Name
- Cannot be blank
- Cannot accept special characters
- Email Id
- Cannot be blank
- Should accept id with @ and “.” present
- Gender
- Cannot be blank
- Date of Birth
- Check for invalid date
- Address
- Cannot be blank
- I Agree all Terms and Conditions
- Must be checked
Solve this example using alert and error Div error messages