Download presentation
Presentation is loading. Please wait.
Published byApril Goodman Modified over 8 years ago
1
Form Validation
2
Create a form for the user to enter the data seen blow
3
As part of the design there should be a with its display attribute set to hidden that will be displayed if the user has not completed said field correctly
4
Validating fields First and Last name should not be blank and not start with numbers. Use a simple regular expression to validate the email, phone, and date fields The Customer Number should be a C followed by four digits. The Order Number should be a P followed by four digits.
5
Additional Things When appropriate, set the maxlength property of the textbox so that the user cannot type more characters than would be valid. Make the warning message div “disappear” (change its display attribute’s value) if the user changes the text in the corresponding textbox.
6
Alert the user about which fields need correcting
7
If the user enters everything correctly and clicks Enter, have an alert saying so
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.